You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gpu.js will be very much helpful if we want to run evaluation of any pre-trained neural network models in client side.
Agreed! But we want to as well ensure that gpu.js can be used to train neural networks, and that vision will be achieved more in version 2 when OpenCL is added (node) and WebGL 2 is supported (client and node), however training does work as of now in both environments.
In the case of Neural netowk/Machine learning, most of common use case of 4D array is 2DConvolution.
2DConvoulution will transform one 2D image ( or 2D array ) into array of 2D images ( 3D array ).
Applying 2D convolution on array of 2DImages (3DArray ) will result a 4D array which is an example use of 4D array.
Activity
robertleeplummerjr commentedon Nov 18, 2017
Currently, it'd be hard. But long term, it may be a good move. Are you talking hypothetically, or do you have a use case where you have 4d+ arrays?
harish2704 commentedon Jan 14, 2018
-just an info
robertleeplummerjr commentedon Jan 14, 2018
Agreed! But we want to as well ensure that gpu.js can be used to train neural networks, and that vision will be achieved more in version 2 when OpenCL is added (node) and WebGL 2 is supported (client and node), however training does work as of now in both environments.
Here (brain.js) is an example of a convolution that runs on gpu.js. While there are several layers of of looping, the result is still three dimensional: https://github.com/BrainJS/brain.js/blob/ff66428f828c528c1cf61379c761c1eb7f50c471/src/layer/convolution.js#L61
Does that help at all?
harish2704 commentedon Jan 14, 2018
Thanks. brain.js was very useful link.
Regarding Opencl: Opencl backend will be super cool feature .. I will be waiting for it..