MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / body

Method body

tensorflow/python/kernel_tests/variables_test.py:291–294  ·  view source on GitHub ↗
(i, _)

Source from the content-addressed store, hash-verified

289 return i < 10
290
291 def body(i, _):
292 zero = array_ops.zeros([], dtype=dtypes.int32)
293 v = variables.Variable(initial_value=zero)
294 return (i + 1, v.read_value())
295
296 with self.assertRaisesRegexp(ValueError, "inside a control-flow"):
297 control_flow_ops.while_loop(cond, body, [0, 0])

Callers

nothing calls this directly

Calls 2

read_valueMethod · 0.95
VariableMethod · 0.80

Tested by

no test coverage detected