SetOpNameType
Function Usage
Sets the operator name and type.
Prototype
ContextBuilder &SetOpNameType(const std::string& opName, const std::string& opType);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
opName |
Input |
Operator name. |
opType |
Input |
Operator type. |
Returns
Object of the current ContextBuilder
Constraints
None
Example
std::string opName = "tmpNode"; std::string opType = "FlashAttentionScore"; context_ascendc::ContextBuilder builder; (void)builder.SetOpNameType(opName, opType);
Parent topic: ContextBuilder