Commit ecae82d1 authored by Shanqing Cai's avatar Shanqing Cai Committed by TensorFlower Gardener
Browse files

tfdbg: change grpc protocol to make it possible to switch on/off gated_grpc...

tfdbg: change grpc protocol to make it possible to switch on/off gated_grpc debug ops at the first Session.run()

Previously, the request_watch() and request_unwatch() calls will not take effect the current Session.run() has ended. This CL eliminates that limitation by letting PublishCoreMeatadata() and PublishGraph() read an EventReply from the server before they return.

For the Python API, this change is backward compatible. The on_core_meatadata() and on_graph_def() methods can continue to return nothing (None), in which case the base server class will just replace the None with a default-constructor EventReply.

PiperOrigin-RevId: 168608272
parent f95b1cf1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment