Class Slice
Defined in File transforms.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
Class Documentation
-
class Slice : public mindspore::dataset::TensorTransform
Extract a tensor out using the given n slices. The functionality of Slice is similar to the feature of indexing of NumPy. (Currently only rank-1 tensors are supported).
Public Functions
-
explicit Slice(const std::vector<SliceOption> &slice_input)
Constructor.
- Parameters
slice_input – [in] Vector of SliceOption
-
~Slice() = default
Destructor.
-
explicit Slice(const std::vector<SliceOption> &slice_input)