I'm receiving this error when trying to use tensorflow on an ubuntu box. 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 something I'm missing?
Initialization of backend tensorflow failed Error: Could not locate the bindings file. Tried: → /var/nodejs/tensor/node_modules/@tensorflow/tfjs-node/build/tfjs_binding.node, ... etc
node: v10.12.0
npm: 6.7.0
package.json
{
"name": "tensor",
"scripts": {
"start": "node algo.js"
},
"dependencies": {
"@tensorflow/tfjs-node": "*"
}
}
algo.js
const tf = require('@tensorflow/tfjs-node');