[WebGL] Failed to compile fragment shader
See original GitHub issueSystem information
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow.js): Yes
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): All platforms
- TensorFlow.js version (use command below): tf.js 3.7.0 webgl backend.
- Browser version: Chrome 93.0.4545.0
Describe the current behavior
WebGL backend throws Failed to compile fragment shader
error while using depthwiseConv2d
op with specific options. While WebGPU backend doesn’t reproduce.
Describe the expected behavior No error.
Standalone code to reproduce the issue
CodePen: https://codepen.io/honry/pen/wvdMmva
const input = tf.fill([1, 65, 65, 960], 0);
const weights = tf.fill([3, 3, 960, 1], 1);
const result = tf.depthwiseConv2d(input, weights, 1, 'same', 'NHWC', 4);
Other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Please check error log from https://codepen.io/honry/pen/wvdMmva
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
Failed to compile fragment shader · Issue #1644 · tensorflow/tfjs
TensorFlow.js version : 1.0.0 Browser version: Chromium - Version 74.0.3729.169 (Official Build) Built on Ubuntu , running on Ubuntu 18.04 ...
Read more >WebGL fragment shader won't compile - Stack Overflow
I am attempting to compile a WebGL fragment shader. I believe the error is in the shader's string, but I am unsure what...
Read more >Failed to compile fragment shader - Google Groups
I am having an issue similar to #177. When running on chrome I get the error "Failed to compile fragment shader" when I...
Read more >[SOLVED] Failed to compile fragment shader - iPad
ERROR Failed to compile fragment shader: '[]' : array constructor supported in GLSL ES 3.00 and above only '[]' : first-class arrays (array ......
Read more >Fragment shader failed to compile. Compile log: ERROR: 0 ...
This is the error message: RuntimeError: Fragment shader failed to compile. Compile log: ERROR: 0:111: 'undefined' : undeclared identifier
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
@huningxin, this issue only reproduce on webgl backend.
Thanks @rthadur, I’ve created a new issue at https://github.com/tensorflow/tfjs/issues/5378.