Re:Neural Networks in JavaScript with Deeplearn.js
by banachtarski on Tuesday December 05, 2017 @08:02PM
(#15857682)
Why pretend? A texture is just an array of floats. The thing preventing you, the programmer, from seeing it as something beyond an "image" is really yourself. In modern graphics, we use textures to represent all kinds of data. Projections onto different spherical harmonic modes, luminance histograms, atmospheric data, etc.
A texture is just data and a shader mutates that in a highly parallel way with specific coherence semantics. Before knocking it, I suggest educating yourself a bit more.
Re:Neural Networks in JavaScript with Deeplearn.js
by paxy on Tuesday December 05, 2017 @08:19PM
(#15857750)
What are we pretending here? A GPU is designed to do multiplication. We're doing multiplication. Calling it "texture" or "shading" or whatever else is only because of the GPU's root in gaming, otherwise the problems are exactly the same.
Re:Neural Networks in JavaScript with Deeplearn.js
by Houshalter on Tuesday December 05, 2017 @07:39PM
(#15857574)
Yeah I don't see how I stepped on any toes. Deep learning libraries have always been a pain in the ass to install. And only support some OSes and GPUs. There's nothing wrong with JS or webgl, but it seems an incredibly inelegant choice for this.
Re:Neural Networks in JavaScript with Deeplearn.js
by lettergram on Tuesday December 05, 2017 @11:59PM
(#15858657)
pip install tensorflow is pretty darn easy....
Granted it doesn't have AMD support, I'm fairly confident even the CPUs can out perform the javascript library.
Re:Neural Networks in JavaScript with Deeplearn.js
by Houshalter on Wednesday December 06, 2017 @01:13AM
(#15858957)
I wasn't aware it worked at all on Windows now, that's cool. Doesn't seem very simple to install though. This is the installation guide for just one of the prerequisites: http://docs.nvidia.com/cuda/cuda-installation-guide-microsof... And as you mention, only Nvidia.
You want fast matrix multiplication? Pretend you're doing texture shading in a language primarily used for dynamic web frontends!