Module slice_range

Module slice_range 

Source
Expand description

Range types used when slicing tensors.

Structs§

SliceRange
A range for slicing a Tensor or NdTensor.

Enums§

SliceItem
Specifies a subset of a dimension to include when slicing a tensor or view.

Traits§

IntoSliceItems
Used to convert sequences of indices and/or ranges into a uniform [SliceItem] array that can be used to slice a tensor.

Functions§

to_slice_items
Convert a slice of indices into SliceItems.

Type Aliases§

DynSliceItems
Dynamically sized array of SliceItems, which avoids allocating in the common case where the length is small.