Hi! Tenserflow node js, on CPU 13700 working only 8 core, “@tensorflow/tfjs-node”: “^4.12.0”
How can I make all cores work?
screenshot Snipaste-2023-10-25-11-49-13 hosted at ImgBB — ImgBB
windows 10 x64
1 Like
Maybe this answer will help you somewhat:
Make tfjs use all 4 cpu cores
const tf = require(‘@tensorflow/tfjs’);
const {getThreadsCount, setThreadsCount} = require(‘@tensorflow/tfjs-backend-wasm’);
setThreadsCount(8);
tf.setBackend(‘wasm’).then(() => {
console.log(getThreadsCount());
});
result = 1
This is for mobile applications, as I understand it. I need for PC