Cannot import @tensorflow/tfjs-node-gpu on Windows
See original GitHub issueTo 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:
- Created 4 years ago
- Comments:55 (17 by maintainers)
Top GitHub Comments
@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.
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 😕