singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [singa] joddiy opened a new issue #634: cannot do matmul for high-dim tensors
Date Tue, 24 Mar 2020 05:49:51 GMT
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message