MCPcopy Create free account
hub / github.com/alibaba/nann / _SwitchRefOrTensor

Function _SwitchRefOrTensor

tensorflow/tensorflow/python/ops/control_flow_ops.py:321–362  ·  view source on GitHub ↗

Forwards `data` to an output determined by `pred`. If `pred` is false, the `data` input is forwarded to the first output. Otherwise, the data goes to the second output. This op handles `Tensor`s and `IndexedSlices`. Args: data: The tensor to be forwarded to the appropriate output.

(data, pred, name="Switch")

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

AddValueMethod · 0.85
_ProcessOutputTensorMethod · 0.85
_BuildLoopMethod · 0.85

Calls 2

colocate_withMethod · 0.80
switchFunction · 0.70

Tested by

no test coverage detected