def schema_to_feature_spec()

in spotify_tensorflow/tf_schema_utils.py [0:0]


def schema_to_feature_spec(schema):
    # type: (Schema) -> Dict[str, Union[tf.FixedLenFeature, tf.VarLenFeature, tf.SparseFeature]]
    """
    Convert a tf.metadata Schema to a Tensorflow feature_spec object.
    """
    return schema_utils.schema_as_feature_spec(schema).feature_spec