Skip to content
New issue

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

fix pytorch UserWarning #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hushaoqing
Copy link

fix #8

test

Windows 11 WSL, Python 3.10.15 x64, Numpy 1.26.4, 12th Gen Intel(R) Core(TM) i7-12700KF 3.60 GHz:

numpy.save: 0:00:00.657019
fastnumpyio.save: 0:00:00.185535
fastnumpyio.pack: 0:00:00.157975
numpy.load: 0:00:01.783694
fastnumpyio.load: 0:00:00.257334
fastnumpyio.unpack: 0:00:00.175327
numpy.save+numpy.load == fastnumpyio.save+fastnumpyio.load: True
numpy.save+numpy.load == fastnumpyio.pack+fastnumpyio.unpack: True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UserWarning: The given NumPy array is not writable, and PyTorch does not support non-writable tensors.
1 participant