attr_scope

Applicable Products

All processors

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)