tensorflow_serving/servables/tensorflow/testdata/saved_model_half_plus_two.py
def _get_feature_spec():
  """Returns feature spec for parsing tensorflow.Example."""
  # tensorflow.Example contains two features "x" and "x2".
  return {
      "x": tf.FixedLenFeature([1], dtype=tf.float32),
      "x2": tf.FixedLenFeature([1], dtype=tf.float32, default_value=[0.0])
  }
Returns feature spec for parsing tensorflow.Example.
Returns feature spec for parsing tensorflow.Example.
Returns feature spec for parsing tensorflow . Example .
def _get_feature_spec():
  return {
      "x": tf.FixedLenFeature([1], dtype=tf.float32),
      "x2": tf.FixedLenFeature([1], dtype=tf.float32, default_value=[0.0])
  }
def _get_feature_spec ( ) : return { "x" : tf . FixedLenFeature ( [ 1 ] , dtype = tf . float32 ) , "x2" : tf . FixedLenFeature ( [ 1 ] , dtype = tf . float32 , default_value = [ 0.0 ] ) }
Returns feature spec for parsing tensorflow.Example.
Returns feature spec for parsing tensorflow . Example .
"""Returns feature spec for parsing tensorflow.Example.""" # tensorflow.Example contains two features "x" and "x2".