tensorflow_serving/servables/tensorflow/testdata/saved_model_half_plus_two.py
def _build_classification_signature(input_tensor, scores_tensor):
  """Helper function for building a classification SignatureDef."""
  input_tensor_info = tf.saved_model.utils.build_tensor_info(input_tensor)
  signature_inputs = {
      tf.saved_model.signature_constants.CLASSIFY_INPUTS: input_tensor_info
  }
  output_tensor_info = tf.saved_model.utils.build_tensor_info(scores_tensor)
  signature_outputs = {
      tf.saved_model.signature_constants.CLASSIFY_OUTPUT_SCORES:
          output_tensor_info
  }
  return tf.saved_model.signature_def_utils.build_signature_def(
      signature_inputs, signature_outputs,
      tf.saved_model.signature_constants.CLASSIFY_METHOD_NAME)
Helper function for building a classification SignatureDef.
Helper function for building a classification SignatureDef.
Helper function for building a classification SignatureDef .
def _build_classification_signature(input_tensor, scores_tensor):
  input_tensor_info = tf.saved_model.utils.build_tensor_info(input_tensor)
  signature_inputs = {
      tf.saved_model.signature_constants.CLASSIFY_INPUTS: input_tensor_info
  }
  output_tensor_info = tf.saved_model.utils.build_tensor_info(scores_tensor)
  signature_outputs = {
      tf.saved_model.signature_constants.CLASSIFY_OUTPUT_SCORES:
          output_tensor_info
  }
  return tf.saved_model.signature_def_utils.build_signature_def(
      signature_inputs, signature_outputs,
      tf.saved_model.signature_constants.CLASSIFY_METHOD_NAME)
def _build_classification_signature ( input_tensor , scores_tensor ) : input_tensor_info = tf . saved_model . utils . build_tensor_info ( input_tensor ) signature_inputs = { tf . saved_model . signature_constants . CLASSIFY_INPUTS : input_tensor_info } output_tensor_info = tf . saved_model . utils . build_tensor_info ( scores_tensor ) signature_outputs = { tf . saved_model . signature_constants . CLASSIFY_OUTPUT_SCORES : output_tensor_info } return tf . saved_model . signature_def_utils . build_signature_def ( signature_inputs , signature_outputs , tf . saved_model . signature_constants . CLASSIFY_METHOD_NAME )
Helper function for building a classification SignatureDef.
Helper function for building a classification SignatureDef .
"""Helper function for building a classification SignatureDef."""
input_tensor
scores_tensor