joddiy opened a new issue #634: cannot do matmul for high-dim tensors
URL: https://github.com/apache/singa/issues/634
 
 
   Hi, @dcslin , we ccannot do matmul for high-dim tensors:
   
   The error is:
   > F0324 05:47:19.174587 15611 tensor.cc:1413] Check failed: A.shape().size() 
== 2u (4 vs. 2)
   
   please use this test case:
   ```python3
   x1 = np.random.randn(1, 12, 256, 64).astype(np.float32)
   x2 = np.random.randn(1, 12, 64, 256).astype(np.float32)
   x1 = tensor.from_numpy(x1)
   x1.to_device(gpu_dev)
   x2 = tensor.from_numpy(x2)
   x2.to_device(gpu_dev)
   
   y = autograd.Matmul()(x1, x2)
   print(tensor.to_numpy(y[0]))
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to