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.

Initialization of backend tensorflow failed Error: The specified module could not be found.

See original GitHub issue

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

TensorFlow.js version

           "@tensorflow/tfjs-node-gpu": "^1.1.2"

Browser version

             N?A

Describe the problem or feature request

                error when initializing index.js  
        Initialization of backend tensorflow failed

Error: The specified module could not be found. \?\C:\video_object_detector\node_modules@tensorflow\tfjs-node-gpu\build\Release\tfjs_binding.node at Object.Module._extensions…node (internal/modules/cjs/loader.js:800:18) at Module.load (internal/modules/cjs/loader.js:628:32) at Function.Module._load (internal/modules/cjs/loader.js:555:12) at Module.require (internal/modules/cjs/loader.js:666:19) at require (internal/modules/cjs/helpers.js:16:16) at bindings (C:\video_object_detector\node_modules\bindings\bindings.js:84:48) at Object.factory (C:\video_object_detector\node_modules@tensorflow\tfjs-node-gpu\dist\index.js:48:60) at Engine.initializeBackend (C:\video_object_detector\node_modules@tensorflow\tfjs-core\dist\engine.js:237:48) at Engine.<anonymous> (C:\video_object_detector\node_modules@tensorflow\tfjs-core\dist\engine.js:200:35) at step (C:\video_object_detector\node_modules@tensorflow\tfjs-core\dist\engine.js:48:23)

Code to reproduce the bug / link to feature request

npm install -g rollup npm install g node-gyp npm install @tensorflow/tfjs-node-gpu node-gyp configure --verbose npm --add-python-to-path=‘true’ --debug install --global windows-build-tools

windows 10 Home single language v 1803 GEFORCE GTX 950M Cuda 9.0 with cudnn 7.5.0.56 Python 2.7.16

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
oveddancommented, Jul 23, 2019

In my case it turns out cudnn was not installed! smh! I followed the instructions here: https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#installwindows

And now it works for me 😃

1reaction
Turtlefightcommented, Jul 1, 2019

@CharlesCousyn I used Process Monitor from Sysinternals If you filter for only the node process, you can see the files it is opening (including the dlls it loads / tries to load).

However it seems like Tensorflow only supports CUDA 10.0 (see Software Requirements ). I also didn’t notice this, the error message it gives is pretty cryptic 😉

Have a nice day 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Initialization of backend tensorflow failed Error: Could not ...
It's a fresh npm install in a new folder. I've tried the suggestions from other posts but still can't get it. Is there...
Read more >
Registration of backend tensorflow failed · Issue #739 - GitHub
Following error is displayed: Registration of backend tensorflow failed Error: The specified module could not be found. \\?
Read more >
@tensorflow/tfjs-node - npm
This repository provides native TensorFlow execution in backend JavaScript applications under the Node.js runtime, accelerated by the TensorFlow ...
Read more >
Creates a tf.Tensor with the provided values, shape and dtype.
For WebGPU backend, the data will be stored on a buffer. There is no parameter, so can not use a user-defined size to...
Read more >
tf.Tensor | TensorFlow v2.11.0
We can't put tensors in a set/dictionary as tensor.__hash__() is no longer available starting Tensorflow 2.0. The following will raise an exception starting...
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