control_dependency_scope
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Controls the dependency scope context manager.
Prototype
1 | control_dependency_scope(tensors: List[TensorHolder]) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tensors |
Input |
List of tensor holders. |
Returns
None
Restrictions
None
Example
1 2 | with control_dependency_scope([tensor1, tensor2]): tensor3 = builder.create_input(0) |
Parent topic: ES APIs