Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to make gpu.html work #789

Unanswered
zy890p asked this question in Q&A
Discussion options

I am testing the gpu.html (using serve -d . ) and got this error:

Uncaught TypeError: Cannot read properties of undefined (reading 'GPU')
at new NeuralNetworkGPU (brain.js:5460:35)
at gpu:5:19

I tried adding the gpu.js repo (<script src="https://cdn.jsdelivr.net/npm/gpu.js@latest/dist/gpu-browser.min.js"></script>) but got another error:

Uncaught TypeError: gpu_js.GPU is not a constructor
at new NeuralNetworkGPU (brain.js:5460:24)
at gpu:6:19

Any Idea ?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /