SetIntAttrVal

Function Usage

Sets the attribute value of the integer type for the operator.

Prototype

1
bool SetIntAttrVal(const char *attr_name, const int64_t val) const

Parameters

Parameter

Input/Output

Description

attr_name

Input

Attribute name.

val

Input

Integer value to be set.

Returns

A value indicating whether the attribute is successfully set.

Constraints

None

Examples

1
2
3
4
5
6
bool SetIntAttrVal(ExeResGenerationContext* context) {
  std::string attr_name = "";
  int64_t val = 6; 
  auto result = context->SetIntAttrVal(attr_name.c_str(),val);
  // ...
}