We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError Traceback (most recent call last) in ----> 1 np.set_printoptions(threshold=np.nan) 2 Z = np.zeros((16,16)) 3 print(Z) ValueError: threshold must be non-NAN, try sys.maxsize for untruncated representation
将np.set_printoptions(threshold=np.nan)改为np.set_printoptions(threshold=np.inf) 我的numpy版本为1.19.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
出现的问题
ValueError Traceback (most recent call last)
in
----> 1 np.set_printoptions(threshold=np.nan)
2 Z = np.zeros((16,16))
3 print(Z)
ValueError: threshold must be non-NAN, try sys.maxsize for untruncated representation
解决方法
将np.set_printoptions(threshold=np.nan)改为np.set_printoptions(threshold=np.inf)
我的numpy版本为1.19.1
The text was updated successfully, but these errors were encountered: