Пример #1
0
 def Summary(  # noqa: N802
     self, summary: pb.SummaryRecord, context: grpc.ServicerContext
 ) -> pb.SummaryResult:
     stream_id = summary._info.stream_id
     iface = self._mux.get_stream(stream_id).interface
     iface._publish_summary(summary)
     # make up a response even though this was async
     result = pb.SummaryResult()
     return result
Пример #2
0
 def Summary(self, summary_data, context):  # noqa: N802
     # TODO: make this sync?
     self._backend._interface._publish_summary(summary_data)
     # make up a response even though this was async
     result = wandb_internal_pb2.SummaryResult()
     return result