brain.js icon indicating copy to clipboard operation
brain.js copied to clipboard

Brain.js cpu-only version

Open Shreni37 opened this issue 3 years ago • 5 comments

Summary

I need a version of brain.js where it only uses the CPU only.

Motivation

Hosts without a GPU cant run brain.js so we need a version of brain.js without a gpu, yk.

Shreni37 avatar Nov 29 '22 18:11 Shreni37

@mrtianjin829 this already exists. By default the brain functions are for CPU. The only one that's GPU-specific is NeuralNetworkGPU().

imkane avatar Nov 29 '22 18:11 imkane

@mrtianjin829 this already exists. By default the brain functions are for CPU. The only one that's GPU-specific is NeuralNetworkGPU().

Thanks for your suggestion but I was saying that i need a seperate npm package of brain.js without the GPU stuff.

Shreni37 avatar Nov 30 '22 04:11 Shreni37

@imkane Hi, is the cpu-only only version of brain.js implemented? Please let me know.

Shreni37 avatar Dec 01 '22 13:12 Shreni37

@mrtianjin829 sorry, I'm not a developer in this repo, just a user :slightly_smiling_face:

imkane avatar Dec 01 '22 16:12 imkane

I agree with this. Hard to understand why there isn't a headless version of this library. I even tried to build from scratch - but the dependencies are hardcoded to requiring GPUs.

As pointed out here, there shouldn't be a need for GPUs in order to use the non-GPU parts of the code.

splurgebudget avatar Apr 28 '23 04:04 splurgebudget