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

Function while_loop_v2

tensorflow/tensorflow/python/ops/control_flow_ops.py:2303–2478  ·  view source on GitHub ↗

Repeat `body` while the condition `cond` is true. `cond` is a callable returning a boolean scalar tensor. `body` is a callable returning a (possibly nested) tuple, namedtuple or list of tensors of the same arity (length and structure) and types as `loop_vars`. `loop_vars` is a (possibly nes

(cond,
                  body,
                  loop_vars,
                  shape_invariants=None,
                  parallel_iterations=10,
                  back_prop=True,
                  swap_memory=False,
                  maximum_iterations=None,
                  name=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

testSingleLoopVarMethod · 0.85
BuildWhileMethod · 0.85
fnWithLoopMethod · 0.85
testMultipleLoopVarsMethod · 0.85
testGradientTapeMethod · 0.85
FnMethod · 0.85
testDoubleDerivativeMethod · 0.85

Calls 1

while_loopFunction · 0.70

Tested by 15

testSingleLoopVarMethod · 0.68
BuildWhileMethod · 0.68
fnWithLoopMethod · 0.68
testMultipleLoopVarsMethod · 0.68
testGradientTapeMethod · 0.68
FnMethod · 0.68
testDoubleDerivativeMethod · 0.68