Module dfdx::numpy

source · []
Expand description

Provides some generic functions to save Nd arrays in the .npy format.

Enums

Traits

Represents the NumpyDtype as a const str value.

A type that implements this returns a vec of usize that can represent a tuple of ints in a .npy file.

Write all the numbers in &self with the bytes layed out in Endian order. Most types that this should be implemented for have .to_be_bytes(), .to_le_bytes(), and .to_ne_bytes().

Functions

Saves the data to a .npy file.