Skip to content

[webgl] enabling WEBGL_USE_SHAPES_UNIFORMS results in model execution returning null values #6822

@vladmandic

Description

@vladmandic

user reported issue with my library and after a while it was traced down to WEBGL_USE_SHAPES_UNIFORMS
which i have enabled by default for over half a year now due to massive performance advantages

issue itself is that model execution shows no issues and it returns tensors in expected shape,
but tensor data is an array with all null values instead of expected float32 values

what is strange that on majority of systems there are no issues (plus i cannot reproduce locally)
and there is only single (quite small) affected model out of 10+ used

affected model

very simple code reproduction (again, i cannot reproduce myself)
(it runs a model using predefined image input and checks output validity)

test has tfjs debug enabled and you can see all ops in the browser console

environment:

  • tfjs: 3.20.0 (older versions are also affected)
  • browser: chrome 104 and 105
  • os: windows 10 pro

it's reported on two different systems using different graphics adapters (AMD Radeon and nVidia RTX)
both affected systems report no issues looking at chrome://gpu and webgl v2 is working fine

only other thing worth noting is that user is using non-latin os locale

link to original issue: vladmandic/human#291

Metadata

Metadata

Assignees

Labels

type:bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions