set_node_attr_bool
Function Usage
Sets the bool attribute for a node.
Prototype
1 | set_node_attr_bool(tensor: TensorHolder, attr_name: str, value: bool) -> None |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tensor |
Input |
Tensor holder object. |
attr_name |
Input |
Attribute name. |
value |
Input |
Boolean value. |
Returns
None
Restrictions
- Throws TypeError if the parameter type is incorrect.
- If the setting fails, RuntimeError is thrown.
Parent topic: GraphBuilder