def _float_feature(value):
 if (not isinstance(value, list)):
  value = [value]
 return tf.train.Feature(float_list=tf.train.FloatList(value=value))

def _float_feature ( value ) : if ( not isinstance ( value , list ) ) : value = [ value ] return tf . train . Feature ( float_list = tf . train . FloatList ( value = value ) )
wrapper for inserting float features into example proto .