SetAttr
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Sets the type attribute of the graph.
Prototype
- Set the int64 attribute of the graph.
1Status SetAttr(const char *attr_name, int64_t value)
- Set the string attribute of the graph.
1Status SetAttr(const char *attr_name, const char *value)
- Set the Bool attribute of the graph.
1Status SetAttr(const char *attr_name, bool value)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
attr_name |
Input |
Attribute name. |
value |
Input |
Attribute value. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
SUCCESS: Operation succeeded. Other values: Operation failed. |
Constraints
None
Examples
1 2 | EsGraphBuilder builder("test_graph"); builder.SetAttr("int64_attr", static_cast<int64_t>(10)) |
Parent topic: EsGraphBuilder