brain.js
brain.js copied to clipboard
gpu.html - failing in browser
What is wrong?
I tried this browser example gpu.html from GitHub and running this in the browser (without node.js), I get the following error:
undefined is not an object (evaluating 'new gpu_js.GPU')
Where does it happen?
during instantiation:
const net = new brain.NeuralNetworkGPU();
How do we replicate the issue?
- download https://github.com/BrainJS/brain.js/blob/master/examples/javascript/gpu.html on your desktop
- run gpu.html in any browser
- check console
Expected behavior (i.e. solution)
The example does not specify any prerequisite to run this example successfully, but I am expecting that this example to run straight away in a browser. If this example requires a node.js server in the first place and server is not there, this example should fallback to browser-only processing.
Version information
Browser: Safari Version 15.6.1 (16613.3.9.1.16, 16613), Chrome Version 104.0.5112.101 (Official Build) (x86_64)
Brain.js: 2.0.0-beta.15
How important is this (1-5)?
3