SetListStr

Function Usage

Sets the attribute value of the string list to the operator.

Prototype

1
ge::graphStatus SetListStr(const std::string &attr_name, const std::vector<std::string> &list) const

Parameters

Parameter

Input/Output

Description

attr_name

Input

Attribute name.

list

Input

String list to be set.

Returns

The graphStatus status code is returned.

Constraints

None

Examples

1
2
3
4
5
6
ge::graphStatus SetListStr(ExeResGenerationContext* context) {
  std::string attr_name = "";
  std::vector<std::string> list;  
  ge::graphStatus status = context->SetListStr(attr_name ,list);
  // ...
}