Class KeywordArg
Defined in File value.h
Inheritance Relationships
Base Type
public mindspore::Value
Class Documentation
-
class KeywordArg : public mindspore::Value
KeywordArg defines a Value class which has keyword.
Public Functions
-
inline KeywordArg(const std::string &key, const ValuePtr &value)
Constructor of KeywordArg.
- Parameters
key – [in] Define the key word.
value – [in] Define the value associated with the keyword.
-
~KeywordArg() override = default
Destructor of KeywordArg.
- inline MS_DECLARE_PARENT(KeywordArg, Value) std ValuePtr get_value () const
The hash value of the KeywordArg object.
Get value of the KeywordArg object.
- Returns
The hash value.
- Returns
The value of the KeywordArg object.
-
virtual std::string ToString() const override
Show the KeywordArg object.
- Returns
The description of the KeywordArg object.
-
abstract::AbstractBasePtr ToAbstract() override
Get abstract of the KeywordArg object.
- Returns
The abstract of the KeywordArg object.
-
inline virtual std::string DumpText() const override
Show the KeywordArg object DumpText.
- Returns
The description of the KeywordArg object.
-
inline KeywordArg(const std::string &key, const ValuePtr &value)