tfjs-tsne icon indicating copy to clipboard operation
tfjs-tsne copied to clipboard

The demo crashes with error: "Failed to link vertex and fragment shaders"

Open CoderFF opened this issue 6 years ago • 2 comments

This one: https://storage.googleapis.com/tfjs-examples/tsne-mnist-canvas/dist/index.html

This demo page is obtained as an example of tfjs-tsne here: https://github.com/tensorflow/tfjs-tsne ("Example" section)

CoderFF avatar Jul 12 '19 15:07 CoderFF

https://observablehq.com/@mbostock/lets-try-t-sne works by specifying precise version numbers: @tensorflow/[email protected] and @tensorflow/[email protected]. Any version after these seems to break.

Fil avatar Nov 10 '19 16:11 Fil

I believe this error springs because some of the shader code used in here specifies that the shader program should run using glsl version 300 es [e.g.] while other shader programs [e.g.] used here do not specify the glsl program version number.

Adding a consistent version 300 es declaration to the start of all programs should clear up the "Versions of linked shaders have to match" error...

duhaime avatar Apr 29 '20 16:04 duhaime