Convert a linear index i = d_1 s_1 ... s_n + d_2 s_2 ... s_n + d_n-1 s_n + d_n into a multidimensional index (d_1, d_2, ..., d_n)
Add bias vector to matrix used inside grain.chain.Linear TODO: generalize to broadcastable addition (use cudnnAddTensor)
Convolution/Cross-correration function
Reference CPU implementation of Convolution function
Emebedding ID into vector. TODO: support N-dim input. support sparse weight matrix
Matrix-Matrix multiplication (using cuBLAS)
c = op(alpha1 * a + alpha2 * b) + beta * c;
A module for binary autograd functions.
TODO: - support add tensor with cudnnAddTensor and mir.ndslice - support opBinary(add, mul, min, max) cudnnOpTensor - convolution - batchnorm