add_control_dependency

Applicable Products

All processors

Function Usage

Adds a control dependency from src_tensors to dst_tensor.

Prototype

1
add_control_dependency(dst_tensor: TensorHolder, src_tensors: List[TensorHolder]) -> None

Parameters

Parameter

Input/Output

Description

dst_tensor

Input

Target tensor holder.

src_tensors

Input

List of source tensor holders.

Returns

None

Restrictions

  • If the parameter type is incorrect, TypeError is thrown.
  • If the addition fails, RuntimeError is thrown.