tensorflow_serving/servables/tensorflow/testdata/saved_model_half_plus_two.py
def _build_predict_signature(input_tensor, output_tensor):
  """Helper function for building a predict SignatureDef."""
  input_tensor_info = tf.saved_model.utils.build_tensor_info(input_tensor)
  signature_inputs = {"x": input_tensor_info}

  output_tensor_info = tf.saved_model.utils.build_tensor_info(output_tensor)
  signature_outputs = {"y": output_tensor_info}
  return tf.saved_model.signature_def_utils.build_signature_def(
      signature_inputs, signature_outputs,
      tf.saved_model.signature_constants.PREDICT_METHOD_NAME)
Helper function for building a predict SignatureDef.
Helper function for building a predict SignatureDef.
Helper function for building a predict SignatureDef .
def _build_predict_signature(input_tensor, output_tensor):
  input_tensor_info = tf.saved_model.utils.build_tensor_info(input_tensor)
  signature_inputs = {"x": input_tensor_info}
  output_tensor_info = tf.saved_model.utils.build_tensor_info(output_tensor)
  signature_outputs = {"y": output_tensor_info}
  return tf.saved_model.signature_def_utils.build_signature_def(
      signature_inputs, signature_outputs,
      tf.saved_model.signature_constants.PREDICT_METHOD_NAME)
def _build_predict_signature ( input_tensor , output_tensor ) : input_tensor_info = tf . saved_model . utils . build_tensor_info ( input_tensor ) signature_inputs = { "x" : input_tensor_info } output_tensor_info = tf . saved_model . utils . build_tensor_info ( output_tensor ) signature_outputs = { "y" : output_tensor_info } return tf . saved_model . signature_def_utils . build_signature_def ( signature_inputs , signature_outputs , tf . saved_model . signature_constants . PREDICT_METHOD_NAME )
Helper function for building a predict SignatureDef.
Helper function for building a predict SignatureDef .
"""Helper function for building a predict SignatureDef."""
input_tensor
output_tensor