cunumeric.load#
- cunumeric.load(file: str | bytes | PathLike[Any] | BinaryIO, *, max_header_size: int = 10000) ndarray #
Load an array from a
.npy
file.- Parameters:
file (file-like object, string, or pathlib.Path) – The file to read. File-like objects must support the
seek()
andread()
methods and must always be opened in binary mode.max_header_size (int, optional) – Maximum allowed size of the header. Large headers may not be safe to load securely and thus require explicitly passing a larger value. See
ast.literal_eval()
for details.
- Returns:
result – Data stored in the file.
- Return type:
array
- Raises:
OSError – If the input file does not exist or cannot be read.
See also
Notes
cuNumeric does not currently support
.npz
and pickled files.- Availability:
Single CPU