attr_scope
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Attribute scope context manager.
Prototype
1 | attr_scope(attr_maps) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
attr_maps |
Input |
Attribute mapping dictionary. |
Returns
None
Restrictions
None
Example
1 2 | with attr_scope({"attr_name": attr_value}): tensor = builder.create_input(0) |
Parent topic: ES APIs