The demo crashes with error: "Failed to link vertex and fragment shaders"
Opened this issue · 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)
https://observablehq.com/@mbostock/lets-try-t-sne works by specifying precise version numbers: @tensorflow/tfjs-core@0.14.3 and @tensorflow/tfjs-tsne@0.2.0. Any version after these seems to break.
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...