(self, for_export)
return input_pipeline_func
Get the input pipeline function.
Get the input pipeline function.
Get the input pipeline function .
def get_input_pipeline(self, for_export):
    """Get the input pipeline function."""

    def input_pipeline_func(input_sentences):
      """This input pipeline function will be used in online inference."""
      if for_export:
        input_sentences = self.pre_process_pipeline(input_sentences)
      batch = self.common_process_pipeline(input_sentences)
      return batch

    return input_pipeline_func
def get_input_pipeline ( self , for_export ) : def input_pipeline_func ( input_sentences ) : """This input pipeline function will be used in online inference.""" if for_export : input_sentences = self . pre_process_pipeline ( input_sentences ) batch = self . common_process_pipeline ( input_sentences ) return batch return input_pipeline_func