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

Function while_loop

tensorflow/tensorflow/python/ops/control_flow_ops.py:2483–2757  ·  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,
               name=None,
               maximum_iterations=None,
               return_same_structure=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

while_loop_v2Function · 0.70

Calls 11

BuildLoopMethod · 0.95
TypeErrorFunction · 0.85
executing_eagerlyMethod · 0.80
add_to_collectionMethod · 0.80
condFunction · 0.70
bodyFunction · 0.70
WhileContextClass · 0.70
while_loopMethod · 0.45
name_scopeMethod · 0.45
numpyMethod · 0.45
constantMethod · 0.45

Tested by

no test coverage detected