nx.safetensors
Safetensors.Slice
Slicing support for lazy iteration over tensor data
npy
nx
nx.bigarray_ext
nx.c
nx.core
nx.io
nx.pocketfft
nx.top
nx.xdg
nx.zip
stb_image
stb_image_write
type t = slice_iterator
Slice iterator
type error = invalid_slice
type index = tensor_indexer
Indexing specification for a dimension
val select : int -> index
Select a single index from a dimension
val (//) : bound -> bound -> index
Create a range slice with start and stop bounds
val unbounded : bound
Unbounded slice bound
val included : int -> bound
Inclusive bound
val excluded : int -> bound
Exclusive bound
val make : tensor_view -> index list -> (t, error) result
Create a slice iterator from a tensor view and slice specifications
val next : t -> string option
Get the next chunk of data from the slice iterator
val remaining_byte_len : t -> int
Get the total number of bytes remaining in the iterator
val newshape : t -> int list
Get the shape of the sliced tensor