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

Function map_py_fn

tensorflow/python/data/kernel_tests/map_test.py:77–80  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

75 coordination_events = {i: threading.Event() for i in range(num_elements)}
76
77 def map_py_fn(x):
78 coordination_events[x].wait()
79 coordination_events[x].clear()
80 return x * x
81
82 def map_fn(x):
83 return script_ops.py_func(map_py_fn, [x], x.dtype)

Callers

nothing calls this directly

Calls 2

waitMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected