2 ms·
Thanks! For WebGL, credit goes to https://github.com/waylonflinn/weblas https://github.com/waylonflinn/weblas. I only really use GEMM, but it works quite well.
by transcranial 10y ago
Thanks! For WebGL, credit goes to https://github.com/waylonflinn/weblas https://github.com/waylonflinn/weblas. I only really use GEMM, but it works quite well. In keras.js, convolution is implemented with the oft-used im2col transformation to turn it into a matrix multiply followed by reshape. Convolution kernels directly GLSL could potentially provide speed gains I'm sure, but I can't even imagine writing it for tensors of arbitrary shape.
- dharma1 10y agoCheck out the Winograd optimisations used in Nervana's neon - very fast https://www.nervanasys.com/winograd-2/ https://www.nervanasys.com/winograd-2/