Created
May 9, 2018 20:38
-
-
Save ericmjl/4234935dd5f06f34640ef9696f623550 to your computer and use it in GitHub Desktop.
CuPy arrays have shapes but cupy doesn't have shape()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [1]: import cupy as cp | |
In [2]: a = cp.array([1, 2, 3]) | |
In [3]: cp.shape(a) | |
--------------------------------------------------------------------------- | |
AttributeError Traceback (most recent call last) | |
<ipython-input-3-e2f1392629a9> in <module>() | |
----> 1 cp.shape(a) | |
AttributeError: module 'cupy' has no attribute 'shape' | |
In [4]: a.shape | |
Out[4]: (3,) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment