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

Function switch

tensorflow/tensorflow/python/ops/control_flow_ops.py:286–318  ·  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, dtype=None, name=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

_SwitchGradFunction · 0.70
_SwitchRefOrTensorFunction · 0.70
condFunction · 0.70
AddForwardLoopCounterMethod · 0.70

Calls 4

TypeErrorFunction · 0.85
typeFunction · 0.85
name_scopeMethod · 0.45
flattenMethod · 0.45

Tested by

no test coverage detected