Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You need update GPU usage, please #869

Open
NeiroNext opened this issue Dec 29, 2022 · 2 comments
Open

You need update GPU usage, please #869

NeiroNext opened this issue Dec 29, 2022 · 2 comments
Labels

Comments

@NeiroNext
Copy link

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 NeiroNext added the bug label Dec 29, 2022
@Aarstad
Copy link

Aarstad commented Jan 25, 2023

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/gpu.js@2.9.5/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!

@Vectorrent
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants