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

Method Fn

tensorflow/python/kernel_tests/while_v2_test.py:248–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246
247 @def_function.function
248 def Fn():
249 ret1 = while_loop_v2(
250 lambda v: v < 4.,
251 lambda v: v * v, [x],
252 return_same_structure=False,
253 name="while_1") # x**2
254 ret2 = while_loop_v2(
255 lambda v: v < 16.,
256 lambda v: v * v, [x],
257 return_same_structure=False,
258 name="while_2") # x**4
259 return ret1, ret2
260
261 concrete_fn = Fn.get_concrete_function()
262 while_1 = concrete_fn.graph.get_operation_by_name("while_1")

Callers

nothing calls this directly

Calls 1

while_loop_v2Function · 0.85

Tested by

no test coverage detected