cupy.fromfile#

cupy.fromfile(*args, **kwargs)[source]#

Reads an array from a file.

Note

Uses NumPy’s fromfile and coerces the result to a CuPy array.

Note

If you let NumPy’s fromfile read 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

numpy.fromfile()