Skip to main content

rows_from_descriptor

Function rows_from_descriptor 

Source
pub(crate) fn rows_from_descriptor(
    data: &[u8],
    desc: &TensorDescriptor,
    base_offset: usize,
) -> Vec<Row>
Expand description

Build rows for a tensor descriptor.

base_offset is added to all row offsets so they reflect the descriptor’s absolute position within the file (pass 0 for standalone descriptor files).