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

Function execute_with_callbacks

tensorflow/python/eager/execute.py:136–142  ·  view source on GitHub ↗

Monkey-patch to execute to enable execution callbacks.

(op_name, num_outputs, inputs, attrs, ctx, name=None)

Source from the content-addressed store, hash-verified

134
135
136def execute_with_callbacks(op_name, num_outputs, inputs, attrs, ctx, name=None):
137 """Monkey-patch to execute to enable execution callbacks."""
138 tensors = quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
139 for callback in ctx.post_execution_callbacks:
140 callback(op_name, tuple(inputs), attrs, tensors, name)
141
142 return tensors
143
144
145execute = quick_execute

Callers

nothing calls this directly

Calls 3

quick_executeFunction · 0.85
callbackFunction · 0.85
tupleFunction · 0.85

Tested by

no test coverage detected