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