Class ValueDictionary

Inheritance Relationships

Base Type

  • public mindspore::Value

Class Documentation

class ValueDictionary : public mindspore::Value

ValueDictionary defines a Value class whose type is Dictionary.

Public Functions

inline explicit ValueDictionary(const std::vector<std::pair<std::string, ValuePtr>> &key_values)

Constructor of ValueDictionary.

Parameters

key_values[in] Define the set of keys and values of Dictionary.

~ValueDictionary() override = default

Destructor of ValueDictionary.

inline MS_DECLARE_PARENT(ValueDictionary, Value) std const std::vector< std::pair< std::string, ValuePtr > > & value () const

Get the hash value through key_values_ size.

Get the size of key_values_.

‘operator[]’ which can access value by key.

The value of ValueDictionary object.

Returns

The hash value.

Returns

The size of key_values_.

Parameters

key[in] Define the keyword.

Returns

The value associated with the keyword.

Returns

The value of ValueDictionary object.

inline virtual std::string ToString() const override

Show the ValueDictionary object.

Returns

The description of the ValueDictionary object.

abstract::AbstractBasePtr ToAbstract() override

Get abstract of the ValueDictionary object.

Returns

The abstract of the ValueDictionary object.

inline virtual std::string DumpText() const override

Show the ValueDictionary object DumpText.

Returns

The description of the ValueDictionary object.