MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / while_loop

Function while_loop

tensorflow/python/ops/control_flow_ops.py:2682–2820  ·  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)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 7

BuildLoopMethod · 0.95
name_scopeMethod · 0.80
in_eager_modeMethod · 0.80
add_to_collectionMethod · 0.80
condFunction · 0.70
bodyFunction · 0.70
WhileContextClass · 0.70

Tested by

no test coverage detected