question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in Sampler3D with shape uniforms enabled

See original GitHub issue

System 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:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Linchenncommented, Sep 1, 2022

@shanumantesc I just merged the fix for this ISSUE. If you want, you could local build it and try now.

1reaction
shanumantesccommented, Aug 30, 2022

@Linchenn it was caused by PackProgram - I haven’t saved all the debug information unfortunately since the fix seemed obvious 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found