parameters: (self)
return_statement: return trainer
docstring: Construct and return a protobuf message.
docstring_summary: Construct and return a protobuf message.
docstring_tokens: Construct and return a protobuf message .
function: def export_proto(self):
          """Construct and return a protobuf message."""
          # Initialize protobuf message
          trainer = trainer_pb2.Trainer()
          if self.name is not None:
              trainer.name = self.name
          if self.num_parallel_readers is not None:
              trainer.num_parallel_readers = self.num_parallel_readers
          if self.random_seed is not None:
              trainer.random_seed = self.random_seed
          if self.mini_batch_size is not None:
              trainer.mini_batch_size = self.mini_batch_size
          if self.hydrogen_block_size is not None:
              trainer.hydrogen_block_size = self.hydrogen_block_size
          if self.serialize_io is not None:
              trainer.serialize_io = self.serialize_io
          if self.training_algo is not None:
              trainer.training_algorithm.CopyFrom(self.training_algo.export_proto())
  
          # Add trainer components
          trainer.callback.extend([c.export_proto() for c in self.callbacks])
  
          return trainer
function_tokens: def export_proto ( self ) : # Initialize protobuf message trainer = trainer_pb2 . Trainer ( ) if self . name is not None : trainer . name = self . name if self . num_parallel_readers is not None : trainer . num_parallel_readers = self . num_parallel_readers if self . random_seed is not None : trainer . random_seed = self . random_seed if self . mini_batch_size is not None : trainer . mini_batch_size = self . mini_batch_size if self . hydrogen_block_size is not None : trainer . hydrogen_block_size = self . hydrogen_block_size if self . serialize_io is not None : trainer . serialize_io = self . serialize_io if self . training_algo is not None : trainer . training_algorithm . CopyFrom ( self . training_algo . export_proto ( ) ) # Add trainer components trainer . callback . extend ( [ c . export_proto ( ) for c in self . callbacks ] ) return trainer