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

Unclear cause of "Requested texture size [19991x2] greater than WebGL maximum..."

Open ToonTalk opened this issue 6 years ago • 0 comments

Using the same scripts for 13 languages only Japanese yields an "Requested texture size [19991x2] greater than WebGL maximum" error. Note that Chinese works fine. And reducing the Japanese data from 20,000 entries to 16,000 entries works fine. Clearly some datasets are too large for tfjs-tsne but in this case all languages were 20000x300 so why only Japanese causing this error?

https://ecraft2learn.github.io/ai/word-embeddings/tsne-ja16000.html (works fine)

https://ecraft2learn.github.io/ai/word-embeddings/tsne-ja20000.html (produces the following error)

Uncaught (in promise) Error: Requested texture size [19991x2] greater than WebGL maximum on this browser / GPU [16384x16384]. at validateTextureSize (tfjs:2) at createAndConfigureTexture (tfjs:2) at createFloat32MatrixTexture (tfjs:2) at e.createFloat32MatrixTexture (tfjs:2) at e.acquireTexture (tfjs:2) at e.acquireTexture (tfjs:2) at e.uploadToGPU (tfjs:2) at e.compileAndRun (tfjs:2) at e.slice (tfjs:2) at ENV.engine.runKernel.$x (tfjs:2)

ToonTalk avatar Jul 25 '18 10:07 ToonTalk