cupy.fromfile#
- cupy.fromfile(*args, **kwargs)[source]#
Reads an array from a file.
Note
Uses NumPy’s
fromfileand coerces the result to a CuPy array.Note
If you let NumPy’s
fromfileread the file in big-endian, CuPy automatically swaps its byte order to little-endian, which is the NVIDIA and AMD GPU architecture’s native use.See also