Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lite/kernels/xpu/__xpu__mmdnn_compute.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ void XPUMmdnnBidEmbGrnnAttCompute2::Run() {
int table_m = param.emb_tbl->dims()[0];
int embed_dim = param.emb_tbl->dims()[1];

int r = xdnn::embedding<float, int64_t>(
int r = xdnn::paddle_embedding<float, int64_t>(
ctx.GetRawContext(),
param.emb_tbl->data<float>(),
param.id0->data<int64_t>(),
Expand All @@ -1122,6 +1122,7 @@ void XPUMmdnnBidEmbGrnnAttCompute2::Run() {
num,
128000);
CHECK_EQ(r, 0);

}

class XPUMmdnnBidEmbAttCompute
Expand Down
2 changes: 1 addition & 1 deletion lite/kernels/xpu/lookup_table_compute.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void LookupTableCompute<WType, IDType, PType>::Run() {
int xm = param.W->dims()[0];
int n = param.W->dims()[1];

int r = xdnn::embedding<WType, IDType>(
int r = xdnn::paddle_embedding<WType, IDType>(
ctx.GetRawContext(), /* context */
param.W->template data<WType>(),
param.Ids->template data<IDType>(),
Expand Down