API Reference code examples not working in chrome (ubuntu 16.04) when using WebGL
See original GitHub issueTensorFlow.js version
all Versions
Browser version
Version 65.0.3325.181 (Official Build) (64-Bit)
Describe the problem or feature request
Many code examples from the API Reference are not working in Chrome for Ubuntu e.g. tf.fromPixels. Output in Firefox is [ [[100, 150, 200],]]
Output in Chrome is [ [[0, 0, 0],]]
When I disable WebGL trough an extension the code works as expected also in Chrome. In Firefox on Ubuntu everything is working as expected.
Other examples: tf.cast, tf.pad, tf.concat, tf.gather, tf.reverse, tf.slice, tf.split, tf.stack (and many more) Output is always zero.
Code to reproduce the bug / link to feature request
https://js.tensorflow.org/api/0.9.0/#fromPixels
My System:
CPU: Intel® Core™ i7-7820X CPU @ 3.60GHz GPU: 2x Nvidia Titan Xp 64GB Ram Nvidia Drivers: NVIDIA binary driver - version 390.48 from nvidia-390 (open source)
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
how do I enable WebGL? - google chrome - Ask Ubuntu
I'm going to dive into browser game development and thus I need webGL but it does not work in any browser here on...
Read more >Chromium using ANGLE gl driver and VA-API not working on ...
Chromium using ANGLE gl driver and VA-API not working on Ubuntu 20.04 #91 ... MSAA samples 16 Machine model name Machine model version...
Read more >53823 - WebGL doesnot work on arm device - chromium
I'll enhance the EGL logging code so it outputs the error code so we can track down the problem. I should get it...
Read more >how to force chrome to use mesa software driver for webgl
I'm using Ubuntu Linux and I understand that the Mesa GL drivers can be forced to use a software implementation by specifying the...
Read more >How can I enable WebGL in my browser? - Super User
Chrome · Ensure that Disable WebGL is not activated (you'll need to relaunch Chrome for any changes to take effect) · In newer...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@xam-ps thanks for reporting this. We recently added a debug page to help us diagnose possible causes, could you go to https://js.tensorflow.org/debug/ and post a screenshot of what you see there?
Also having problems tf.version
On ubuntu 16.04 LTS. Also no problems on Firefox