Represents an NPY file header.
Returns the Numpy data type string equivalent to the provided TensorFlow data type.
Returns the Numpy data type string equivalent to the provided TensorFlow data type.
Regular expression used to parse Numpy data types.
Regular expression used to parse Numpy data types.
Returns the TensorFlow data type equivalent to the provided Numpy data type string.
Returns the TensorFlow data type equivalent to the provided Numpy data type string.
Reads the tensor stored in the provided Numpy (i.e., .npy
) file.
Reads the tensor stored in the provided Numpy (i.e., .npy
) file.
Writes the provided tensor to the provided file, using the Numpy (i.e., .npy
) file format.
Writes the provided tensor to the provided file, using the Numpy (i.e., .npy
) file format. Note that this method
will replace the file, if it already exists.
Contains helpers for dealing with Numpy (i.e.,
.npy
) files.