Class AbstractKeywordArg
Defined in File abstract_value.h
Inheritance Relationships
Base Type
public mindspore::abstract::AbstractBase
(Class AbstractBase)
Class Documentation
-
class AbstractKeywordArg : public mindspore::abstract::AbstractBase
Class AbstractKeywordArg describes an abstract value from a key-value node.
Represents a key-value pair used in function’s parameters.
Public Functions
-
inline AbstractKeywordArg(const std::string &key, const AbstractBasePtr &argument)
Constructor of AbstractKeywordArg.
- Parameters
key – [in] The key name of the key-value pair.
argument – [in] The key value of the key-value pair.
-
~AbstractKeywordArg() override = default
Destructor of AbstractKeywordArg.
-
virtual AbstractBasePtr Clone() const override
Clone an abstract from the abstract.
- Returns
A pointer to the cloned abstract.
-
virtual AbstractBasePtr Broaden() const override
Broaden the abstract. It will upgrade the abstract to a higher level.
- Returns
A pointer to the broadened abstract.
-
virtual std::size_t hash() const override
Get the hash value of this object.
- Returns
The hash value.
-
inline std::string get_key() const
Get the key name of the key-value pair.
- Returns
A string.
-
inline AbstractBasePtr get_arg() const
Get the key value of the key-value pair.
- Returns
A point to the abstract.
-
virtual std::string ToString() const override
Get the string representation of this object.
- Returns
The string representation.
-
inline AbstractKeywordArg(const std::string &key, const AbstractBasePtr &argument)