Class ValueSlice
Defined in File value.h
Inheritance Relationships
Base Type
public mindspore::Value
Class Documentation
-
class ValueSlice : public mindspore::Value
ValueSlice defines a Value class whose type is Slice.
Public Functions
-
inline ValueSlice(const ValuePtr &start, const ValuePtr &stop, const ValuePtr &step)
Constructor of ValueSlice.
- Parameters
start – [in] Define the start position of slice.
stop – [in] Define the stop position of slice.
step – [in] Define the space of slice.
-
~ValueSlice() override = default
Destructor of ValueSlice.
-
virtual std::string ToString() const override
Show the ValueSlice object ToString.
- Returns
The description of the ValueSlice object.
-
abstract::AbstractBasePtr ToAbstract() override
Get abstract of the ValueSlice object.
- Returns
The abstract of the ValueSlice object.
-
inline virtual std::string DumpText() const override
Show the ValueSlice object.
- Returns
The description of the ValueSlice object.
-
inline ValuePtr start() const
Get the start position of the slice object.
- Returns
The start position of the slice object.
-
inline ValuePtr stop() const
Get the stop position of the slice object.
- Returns
The stop position of the slice object.
-
inline ValuePtr step() const
Get the step position of the slice object.
- Returns
The step position of the slice object.
-
inline ValueSlice(const ValuePtr &start, const ValuePtr &stop, const ValuePtr &step)