gpujs / gpu.js

GPU Accelerated JavaScript
https://gpu.rocks
MIT License
15.08k stars 650 forks source link

use webgl gpu mode error #724

Open mccoysc opened 2 years ago

mccoysc commented 2 years ago

var crossValidate = new brain.CrossValidate(function () { var options = { activation: 'relu', // activation function learningRate: 0.01, // global learning rate, useful when training using streams }; return new brain.NeuralNetworkGPU(options); })

this would cause an error 'Uncaught ReferenceError: gpu_js is not defined'。

perdigao1 commented 2 years ago

This looks like a torch issue rather than gpu.js