Class SliceOption

Class Documentation

class SliceOption

SliceOption used in Slice TensorTransform.

Public Functions

inline explicit SliceOption(bool all)
Parameters

all[in] Slice the whole dimension

inline explicit SliceOption(std::vector<dsize_t> indices)
Parameters

indices[in] Slice these indices along the dimension. Negative indices are supported.

inline explicit SliceOption(Slice slice)
Parameters

slice[in] Slice the generated indices from the slice object along the dimension.