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

Why not WebGL? #1

Open
ldenoue opened this issue Dec 12, 2018 · 5 comments
Open

Why not WebGL? #1

ldenoue opened this issue Dec 12, 2018 · 5 comments

Comments

@ldenoue
Copy link

ldenoue commented Dec 12, 2018

In the page you write “Due to a limitation with Tensorflow.js in the browser, model prediction can only happen on the CPU.”

But all ops in TensorFlow JS should be using WebGL, and so why are the predictions only happening on the CPU in your case?

@nsthorat
Copy link

+1 it would be good to understand this, all ops should be supported on the GPU.

@micah5
Copy link
Owner

micah5 commented Dec 12, 2018

I'm not sure exactly why it doesn't work, but you can see my discussion on the TF.js board (and stack trace) here. I'm not sure if it's a bug with TF.js or WebGL.

Let me know if you guys have any idea what's wrong.

@caisq
Copy link

caisq commented Dec 12, 2018

+1 to understanding what's not working with WebGL + TensorFlow.js in this GAN.

@nsthorat
Copy link

Looks like it's because we don't support slice in 5D / 6D tensors. This PR will fix it (but haven't heard back from the author so we'll try to write the tests and merge it): tensorflow/tfjs-core#1344

@micah5
Copy link
Owner

micah5 commented Dec 12, 2018

Awesome, I'll keep an eye on that PR

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

No branches or pull requests

4 participants