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.

Cannot import @tensorflow/tfjs-node-gpu on Windows

See original GitHub issue

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

TensorFlow.js version

1.2.9

Browser version

Using NodeJS: v12.10.0

Describe the problem or feature request

Cannot import @tensorflow/tfjs-node-gpu at all, only @tensorflow/tfjs-node but I’d like to use my GPU.

Code to reproduce the bug / link to feature request

require(‘@tensorflow/tfjs-node-gpu’);

Here is the error:

`internal/modules/cjs/loader.js:977 return process.dlopen(module, path.toNamespacedPath(filename)); ^

Error: The specified module could not be found. \?\D:\Programming\NodeJS Work\dumb-doorbell\server\node_modules@tensorflow\tfjs-node-gpu\lib\napi-v4\tfjs_binding.node at Object.Module._extensions…node (internal/modules/cjs/loader.js:977:18) at Module.load (internal/modules/cjs/loader.js:790:32) at Function.Module._load (internal/modules/cjs/loader.js:703:12) at Module.require (internal/modules/cjs/loader.js:830:19) at require (internal/modules/cjs/helpers.js:68:18) at Object.<anonymous> (D:\Programming\NodeJS Work\dumb-doorbell\server\node_modules@tensorflow\tfjs-node-gpu\dist\index.js:44:16) at Module._compile (internal/modules/cjs/loader.js:936:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:947:10) at Module.load (internal/modules/cjs/loader.js:790:32) at Function.Module._load (internal/modules/cjs/loader.js:703:12) `

I’ve tried reinstalling all my modules, tried using Recommended Node version, tried rebuilding the package, idk what else to try so I’m hoping to get some way to fix this from here

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:55 (17 by maintainers)

github_iconTop GitHub Comments

5reactions
kangyizhangcommented, Nov 27, 2019

@MarcDelp @adwellj A PR fixing this issue has been merged and the next release (most likely after thankgiving) will support the latest version of node.

3reactions
gobboocommented, Sep 12, 2019

Right, turns out I fixed it? Some how???

Idk how I did but it had nothing to do with NodeJS? I was looking at Voice Mimicing with AI, installed some Python 3.7 libraries, one of which being Tensorflow GPU & PyTorch, now it’s suddenly working

I legit have 0 clue as to what got it working 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot import Tensorflow for GPU on Windows 10
Try to rename cudnn64_6.dll to cudnn64_5.dll in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin .
Read more >
Windows 10 and 8.1 won't import my Pictures & Videos
I just simply cant download my pictures like i used to before i upgraded to windows 10. Where's the bug, Where's the fix....
Read more >
Error: cannot import name '_C' on windows 10 · Issue #501
I get the following error cannot import name '_C' Traceback (most recent call last): File ...
Read more >
Windows 10, can't import photos from iPhone - Dell Community
Solved: Anyone know a real solution to this? I run the Windows Photo app, it detects the photos and videos on my iPhone,...
Read more >
Fixed: Can't Import Photos from iPhone to Windows - YouTube
Download Free FoneTool Now (former name: AOMEI MBackupper) https://www.aomeitech.com/llyy/download/fonetool.html Related Reference ...
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