Skip to main content

format_numpy

Function format_numpy 

Source
pub(crate) fn format_numpy(
    et: ElementType,
    shape: &[u64],
    data: &[u8],
) -> String
Expand description

Format tensor data as a NumPy-style nested-bracket string.

Elements beyond NUMPY_THRESHOLD are elided with ....