Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport 4D arrays #217
Support 4D arrays #217
Comments
|
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? |
-just an info |
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? |
|
Thanks. brain.js was very useful link. Regarding Opencl: Opencl backend will be super cool feature .. I will be waiting for it.. |
The documentation says this library only supports kernels working with 1,2,3D arrays. How hard it would be to support 4D arrays?