Class ValueSequence

Inheritance Relationships

Base Type

  • public mindspore::Value

Derived Types

Class Documentation

class ValueSequence : public mindspore::Value

ValueSequence defines a Value class whose type is Sequence.

Subclassed by mindspore::ValueList, mindspore::ValueTuple

Public Functions

inline explicit ValueSequence(const ValuePtrList &elements)

ValueSequence display defines a Value class whose type is Sequence, such as Tuple.

Parameters

elements[in] Define the vector of elements of value.

inline ValueSequence(const std::initializer_list<ValuePtr> &elements)

ValueSequence defines a ValueNode whose type is Sequence.

Parameters

elements[in] Define the elements of value.

~ValueSequence() override = default

Destructor of ValueSequence.

inline const ValuePtrList &value() const

The value of ValueSequence object.

Returns

The set of ValuePtr objects.

virtual std::string ToString() const override

Show each element ToString.

Returns

The description of the ValueSequence object.

virtual std::string DumpText() const override

Show each element DumpText.

Returns

The description of the ValueSequence object.