tensorflow_serving/model_servers/test_util/tensorflow_model_server_test_base.py
def _TestPredict(
      self,
      model_path,
      batching_parameters_file=None,
      signature_name=signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY):
    """Helper method to test prediction.

    Args:
      model_path:      Path to the model on disk.
      batching_parameters_file: Batching parameters file to use (if None
                                batching is not enabled).
      signature_name: Signature name to expect in the PredictResponse.
    """
    model_server_address = TensorflowModelServerTestBase.RunServer(
        'default',
        model_path,
        batching_parameters_file=batching_parameters_file)[1]
    expected_version = self._GetModelVersion(model_path)
    self.VerifyPredictRequest(model_server_address, expected_output=3.0,
                              expected_version=expected_version,
                              signature_name=signature_name)
    self.VerifyPredictRequest(
        model_server_address, expected_output=3.0, specify_output=False,
        expected_version=expected_version, signature_name=signature_name)
Helper method to test prediction.

    Args:
      model_path:      Path to the model on disk.
      batching_parameters_file: Batching parameters file to use (if None
                                batching is not enabled).
      signature_name: Signature name to expect in the PredictResponse.
    
Helper method to test prediction.
Helper method to test prediction .
def _TestPredict(
      self,
      model_path,
      batching_parameters_file=None,
      signature_name=signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY):
    model_server_address = TensorflowModelServerTestBase.RunServer(
        'default',
        model_path,
        batching_parameters_file=batching_parameters_file)[1]
    expected_version = self._GetModelVersion(model_path)
    self.VerifyPredictRequest(model_server_address, expected_output=3.0,
                              expected_version=expected_version,
                              signature_name=signature_name)
    self.VerifyPredictRequest(
        model_server_address, expected_output=3.0, specify_output=False,
        expected_version=expected_version, signature_name=signature_name)
def _TestPredict ( self , model_path , batching_parameters_file = None , signature_name = signature_constants . DEFAULT_SERVING_SIGNATURE_DEF_KEY ) : model_server_address = TensorflowModelServerTestBase . RunServer ( 'default' , model_path , batching_parameters_file = batching_parameters_file ) [ 1 ] expected_version = self . _GetModelVersion ( model_path ) self . VerifyPredictRequest ( model_server_address , expected_output = 3.0 , expected_version = expected_version , signature_name = signature_name ) self . VerifyPredictRequest ( model_server_address , expected_output = 3.0 , specify_output = False , expected_version = expected_version , signature_name = signature_name )
Helper method to test prediction.
Helper method to test prediction .
"""Helper method to test prediction.

    Args:
      model_path:      Path to the model on disk.
      batching_parameters_file: Batching parameters file to use (if None
                                batching is not enabled).
      signature_name: Signature name to expect in the PredictResponse.
    """
self
model_path
Path to the model on disk.
Path to the model on disk .
batching_parameters_file
Batching parameters file to use (if None
batching is not enabled).
Batching parameters file to use ( if None batching is not enabled ) .
signature_name
Signature name to expect in the PredictResponse.
Signature name to expect in the PredictResponse .