Class Value

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class Value : public mindspore::Base

Subclassed by mindspore::AnyValue, mindspore::KeywordArg, mindspore::Monad, mindspore::Named, mindspore::Scalar, mindspore::StringImm, mindspore::ValueDictionary, mindspore::ValueSequence, mindspore::ValueSlice, mindspore::tensor::MetaSparseTensor, mindspore::tensor::MetaTensor

Public Functions

Value() = default

Default constructor.

inline explicit Value(const TypePtr t)

Constructor of Value.

Parameters

t[in] The type of this Value.

inline Value(const Value &other)

Constructor of Value.

Parameters

other[in] Another Value.

~Value() override = default

Destructor.

inline  MS_DECLARE_PARENT (Value, Base) TypePtr type() const

Get the type of this Value.

Returns

The type.

inline virtual abstract::AbstractBasePtr ToAbstract()

Get the abstract value of Value.

Returns

Abstract value of Value.