Class Parameter
Defined in File anf.h
Inheritance Relationships
Base Type
public mindspore::api::AnfNode
(Class AnfNode)
Class Documentation
-
class Parameter : public mindspore::api::AnfNode
Parameter represents the parameter inputs of a function.
Public Functions
-
std::string name() const
Get the name of this Parameter.
- Returns
The name.
-
void set_name(const std::string &name)
Set the name of this Parameter.
- Parameters
name – [in] The name.
-
bool has_default() const
Check if there is a default parameter.
- Returns
True if this Parameter has a default parameter, otherwise false.
-
void set_default_param(const ValuePtr ¶m)
Set the default parameter.
- Parameters
param – [in] The default parameter.
-
ValuePtr default_param() const
Get the default parameter.
- Returns
The default parameter.
-
std::string name() const