Class Parameter

Inheritance Relationships

Base Type

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.

返回

The name.

void set_name(const std::string &name)

Set the name of this Parameter.

参数

name[in] The name.

bool has_default() const

Check if there is a default parameter.

返回

True if this Parameter has a default parameter, otherwise false.

void set_default_param(const ValuePtr &param)

Set the default parameter.

参数

param[in] The default parameter.

ValuePtr default_param() const

Get the default parameter.

返回

The default parameter.