29 karma · joined Oct 23, 2018 (8y ago) · 20 submissions
comment 6y ago · link · parent
>I guess it's doing some sort of transformation
That is exactly correct. From javascript to an abstract syntax tree, and then to whatever target language we need. In this case GLSL.
>Presumably there's a not-significant overhead in both starting it up
That has been the goal, we're really careful to measure it with releases.
>and getting data back from the gpu.js function
That is correct as well, it is about as costly as it would be without GPU.js. However you can enable pipeline on kernels, so they can communicate via textures, which is significantly faster, as we don't need to transfer back to the CPU.
>Is there a way to "compile" a gpu.js function to remove the translation step? That could be really useful.
It is built into every kernel. You simply call `kernel.toString(...args)`.
comment 7y ago · link · parent
I've used: https://github.com/n-riesco/ijavascript https://github.com/notablemind/jupyter-nodejs
Or even: https://beta.observablehq.com/
comment 7y ago · link · parent
Note: this is what brain.js is shifting over to. It uses the... GPU.
comment 7y ago · link · parent
comment 7y ago · link · parent
The idea here is that the net can continue to train, reinforcing its previous understanding with new understandings, if new training data is provided.
It may be that we need to clarify the tutorial, as your point is based around unsupervised learning, not having training data.
Is it an overloaded term? YES!
comment 7y ago · link · parent