brain.js
brain.js copied to clipboard
You need update GPU usage, please
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!
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!
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.