question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: 'zerosLike' not yet implemented or not found in the registry. Did you forget to import the kernel?

See original GitHub issue

To 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:closed
  • Created 4 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nsthoratcommented, Apr 13, 2020

@syonfox another issue would be great, we can implement it.

0reactions
syonfoxcommented, Apr 4, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found