Comment

Function Usage

Sets the comment of the input or output parameter.

Prototype

OpParamDef &Comment(const char *comment);

Parameters

Parameter

Input/Output

Description

comment

Input

Comment content.

Returns

Operator parameter definition. For details about OpParamDef, see OpParamDef.

Constraints

None

Example

	this->Input("x")
		.ParamType(REQUIRED)
		.DataType({ge::DT_FLOAT, ge::DT_INT32})
		.FormatList({ge::FORMAT_ND})
		.Comment("Input cmt 1"); // Comment content
	this->Input("y")
		.ParamType(REQUIRED)
		.Comment("Input cmt 2") // Comment content
		.DataType({ge::DT_FLOAT, ge::DT_INT32})
		.FormatList({ge::FORMAT_ND});

	this->Output("z")
		.Comment("Output cmt 1") // Comment content
		.ParamType(REQUIRED)
		.DataType({ge::DT_FLOAT, ge::DT_INT32})
		.FormatList({ge::FORMAT_ND});