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

Method ReceiveAndProcessEventReplies

tensorflow/core/debug/debug_io_utils.cc:762–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760}
761
762void DebugGrpcChannel::ReceiveAndProcessEventReplies(const size_t max_replies) {
763 EventReply event_reply;
764 size_t num_replies = 0;
765 while ((max_replies == 0 || ++num_replies <= max_replies) &&
766 ReadEventReply(&event_reply)) {
767 for (const EventReply::DebugOpStateChange& debug_op_state_change :
768 event_reply.debug_op_state_changes()) {
769 string watch_key = strings::StrCat(debug_op_state_change.node_name(), ":",
770 debug_op_state_change.output_slot(),
771 ":", debug_op_state_change.debug_op());
772 DebugGrpcIO::SetDebugNodeKeyGrpcState(url_, watch_key,
773 debug_op_state_change.state());
774 }
775 }
776}
777
778Status DebugGrpcChannel::ReceiveServerRepliesAndClose() {
779 reader_writer_->WritesDone();

Calls 5

output_slotMethod · 0.80
debug_opMethod · 0.80
StrCatFunction · 0.50
node_nameMethod · 0.45
stateMethod · 0.45

Tested by

no test coverage detected