Error: 'zerosLike' not yet implemented or not found in the registry. Did you forget to import the kernel?
See original GitHub issueTo get help from the community, we encourage using Stack Overflow and the tensorflow.js
tag.
Browser version
Chrome: Version 80.0.3987.106 (Official Build) (64-bit)
Describe the problem or feature request
Before trying WASM, i was running my model in browser [script] with CPU back-end [Without WebGL] and it was working fine but obviously it was slow.
Then I am trying to change the back-end to the WASM I made the following change, inside the index.html file, i added,
<script src="https://unpkg.com/@tensorflow/tfjs"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm/dist/tf-backend-wasm.js"></script>
<script>
tf.setBackend('wasm').then(() => init());
</script>
When i am running the index.html, in the browser console i am getting the following error -->
backend.ts:662 Uncaught (in promise) Error: 'zerosLike' not yet implemented or not found in the registry. Did you forget to import the kernel?
at Xr (backend.ts:662)
at BackendWasm.t.zerosLike (backend.ts:649)
at Dt.runKernelFunc.$x (tensor_ops.ts:512)
at engine.ts:586
at engine.ts:424
at t.scopedRun (engine.ts:435)
at t.tidy (engine.ts:422)
at h (engine.ts:586)
at engine.ts:599
at t.scopedRun (engine.ts:435)
Background of my model: I am using custom trained cocoSSD-mobilenet. index.js
const LOCAL_MODEL_PATH = 'http://../model.json';
model = await tf.loadGraphModel(LOCAL_MODEL_PATH);
....
output = await model.executeAsync(image);
please Help:-) Thanks.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
TensorflowJS backend CPU kernel undefined is already ...
I am loading the TensorFlowJS library and backend GPU with these script tags: ... Did you forget to import the kernel? at notYetImplemented...
Read more >Cannot Use tf.zeros_like with tensorflow-metal (Monterey)
Hi,. I am reliably able to get the following results after running pip install tensorflow-metal . Note I did not cull anything (including ......
Read more >tensorflow/tfjs-core - UNPKG
'undefined') {\n ns = self;\n } else {\n throw new Error('Could not find a global ... An external consumer can register itself as...
Read more >Release 2.12.0 - Google Git
If you want to migrate to the new optimizer and find it does not support your optimizer, ... Some files in tensorflow/python/training have...
Read more >The Garden of Forking Paths | Kaggle
⓪ I don't think i can use the kernels and forking stuff at work due to network securit ① iginal implementation. Type 1...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@syonfox another issue would be great, we can implement it.
Right now I am just learning tensorflowjs and webassembaly, I was just wanted to Post a bug that oneHot is also not implemented in wasm. I could look into adding it but it would take a while to learn the project structure. Should I perhaps create a new issue since this is already closed? The reason I put it here was the issue looks like the same problem.