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

You need update GPU usage, please

Open NeiroNext opened this issue 3 years ago • 2 comments

What is wrong?

Brain JS use old version of GPU.js with gpu_js class, now gpu library has only GPU class, not gpu_js. Need only overwrite all gpu_js.* to GPU.* and gpu_js.GPU to GPU and all will be work, now GPU mode not work. Thanks!

NeiroNext avatar Dec 29 '22 08:12 NeiroNext

this is correct, i managed to work around this by adding this in my own script tag (before my js code)

<script crossorigin="anonymous" src="https://unpkg.com/[email protected]/dist/gpu-browser.min.js"></script>
<script>
    gpu_js = GPU;
    gpu_js.GPU = GPU;
</script>

I know i know, i should use package manager etc.. just having some fun!

Aarstad avatar Jan 25 '23 00:01 Aarstad

Is this still an issue for anyone? As of beta v23, I am able to successfully train and run inference with the NeuralNetworkGPU() class, in both Firefox and Chromium.

Vectorrent avatar Jun 29 '23 03:06 Vectorrent