control_dependency_scope
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
Constraints
None
Examples
1 2 | with control_dependency_scope([tensor1, tensor2]): tensor3 = builder.create_input(0) |
Parent topic: Python APIs