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

Method body

tensorflow/contrib/eager/python/metrics_test.py:259–261  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

257 init_value = constant_op.constant(1)
258 cond = lambda i: math_ops.less(i, 3)
259 def body(x):
260 with ops.control_dependencies([m(x)]):
261 return math_ops.add(x, 1)
262 accumulate = control_flow_ops.while_loop(cond, body, [init_value])
263
264 result = m.result()

Callers

nothing calls this directly

Calls 2

control_dependenciesMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected