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
After transposition of A, we end up with a valid matrix multiplication.
However, when I run the following function, I get SIGSEGV: Invalid Memory Reference. I'm not sure if I'm doing something wrong or if its an internal error, so I thought I'd post here. I was under the impression that for transposition, all you did was swap the rsa and csa, but again I could be wrong.
#[inline]pubunsafefnmatmul_wrt_b(a:*constf32,gc:*constf32,gb:*mutf32,a_dim:[usize;2],b_dim:[usize;2],beta:f32,){// Check that the dimensions are compatible for multiplicationassert_eq!(a_dim[1], b_dim[0]);// Dimensions of GC are (a_dim[0], b_dim[1])// Dimensions of GB are the same as B. // Compute the gradient of the matrix productsgemm(
a_dim[0],
a_dim[1],
b_dim[1],1.0,
a,1,
a_dim[1]asisize,
gc,
a_dim[1]asisize,1,
beta,
gb,
b_dim[1]asisize,1,);}
The text was updated successfully, but these errors were encountered:
swapping rsa, csa sounds right, but effective matrix sizes also need to be input. I can't check your values, but you need to input the effective size - i.e. the relevant side of the matrix after it is transposed. There is no 'transpose' in the API, so this is the only way you can submit the information. Sizes, strides. Hope it works out.
I'm using matrixmultiply for machine learning, and I'm trying to perform the operation:
GB = A^T * GC
where:
GB = (6272, 100)
A = (100, 6272)
GC = (100, 100)
After transposition of A, we end up with a valid matrix multiplication.
However, when I run the following function, I get SIGSEGV: Invalid Memory Reference. I'm not sure if I'm doing something wrong or if its an internal error, so I thought I'd post here. I was under the impression that for transposition, all you did was swap the rsa and csa, but again I could be wrong.
The text was updated successfully, but these errors were encountered: