- cupy.fromfile(*args, **kwargs)[source]#
Reads an array from a file.
fromfileand coerces the result to a CuPy array.
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.