Skip to content

Commit

Permalink
[WebNN] Fix missing parameter (#23778)
Browse files Browse the repository at this point in the history
Missing first parameter when invoking `jsepEnsureTensor`.
  • Loading branch information
Honry authored Feb 22, 2025
1 parent 98511b0 commit 50c835d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onnxruntime/core/providers/webnn/webnn_execution_provider.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@ class WebNNMemcpy : public OpKernel {
shape.call<void>("push", SafeInt<uint32_t>(dim).Ref());
}

jsepEnsureTensor(reinterpret_cast<intptr_t>(Y->MutableDataRaw()),
jsepEnsureTensor(emscripten::val::undefined(),
reinterpret_cast<intptr_t>(Y->MutableDataRaw()),
Y->GetElementType(),
shape, false)
.await();
Expand Down

0 comments on commit 50c835d

Please sign in to comment.