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