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 #630: AsType cannot work when after Reshape
Date Tue, 17 Mar 2020 11:31:01 GMT
joddiy opened a new issue #630: AsType cannot work when after Reshape
URL: https://github.com/apache/singa/issues/630
 
 
   Hi, @dcslin , The asType cannot work when it is after the reshape operators.
   
   Please check by using the following code:
   
   ```
       dev = device.create_cuda_gpu()
       X = np.array([[1, 0], [1, 1]]).astype(np.int32)
       x = tensor.from_numpy(X)
       x.to_device(dev)
   
       x = autograd.cast(x, tensor.int32)
       x = autograd.reshape(x, [1, 2, 2])
       x = autograd.cast(x, tensor.float32)
   ```

----------------------------------------------------------------
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