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.

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 &param)

Set the default parameter.

Parameters

param[in] The default parameter.

ValuePtr default_param() const

Get the default parameter.

Returns

The default parameter.