def feature_spec_to_schema()

in spotify_tensorflow/tf_schema_utils.py [0:0]


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