예제 #1
0
 def Output(  # noqa: N802
     self, output_data: pb.OutputRecord, context: grpc.ServicerContext
 ) -> pb.OutputResult:
     stream_id = output_data._info.stream_id
     iface = self._mux.get_stream(stream_id).interface
     iface._publish_output(output_data)
     # make up a response even though this was async
     result = pb.OutputResult()
     return result
예제 #2
0
 def Output(self, output_data, context):  # noqa: N802
     # TODO: make this sync?
     self._backend._interface._publish_output(output_data)
     # make up a response even though this was async
     result = wandb_internal_pb2.OutputResult()
     return result