GEMM only works for same-storage tensors (i.e. mixing column and row tensors is not allowed as of now).