Bug in Sampler3D with shape uniforms enabled
See original GitHub issueSystem information
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow.js): Yes, test case shared below
- Mobile device : Pixel 6 Pro (Reproduces on any android device with Mali GPU that I tried)
- TensorFlow.js installed from (npm or script link): 3.19.0
- Browser version: Chrome 103.0.5060.53
Describe the current behavior https://github.com/tensorflow/tfjs/blob/256e59a/tfjs-backend-webgl/src/shader_compiler.ts#L1362
this looks like a bug that we are using pre-calculated stride values instead of the ones computed by the shader. It leads to incorrect outputs in one of our networks for the pack program.
Describe the expected behavior
The code should be int index = row * stride0 + col * stride1 + depth + ${offset};
instead of using pre-calculated stride0/stride1
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
sampler3d / texture3d support? - graphics - jMonkeyEngine Hub
hi, how can i get an 3dtexture as sampler3d into the fragment shader? i can't get the right type in jme. i've found...
Read more >OpenGL texture3D sample3D problem - AMD Community
Now you have a sampler3D and a sampler2D uniform referring to the same texture unit, which isn't really supported. When you comment line...
Read more >Texture3D deprecated? - OpenGL - Khronos Forums
I try and use a sampler3D in a GLSL 1.4 and I get a warning: global function texture3D is deprecated after version 120...
Read more >All Changes | Substance 3D Sampler - 3D & AR
[Scripting] New ssa.helpers module to enable printing to the Log panel; [Application] Support for the new side-by-side buttons widget from Substance 3D Designer....
Read more >[SH16C] Doom - Shadertoy
It doesn't seem to be a timeout - the crash occurs after only a couple of seconds, which might actually indicate a bug...
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
@shanumantesc I just merged the fix for this ISSUE. If you want, you could local build it and try now.
@Linchenn it was caused by
PackProgram
- I haven’t saved all the debug information unfortunately since the fix seemed obvious 😃