def schema_file_to_feature_spec()

in spotify_tensorflow/tf_schema_utils.py [0:0]


def schema_file_to_feature_spec(schema_path):
    # type: (str) -> Dict[str, Union[tf.FixedLenFeature, tf.VarLenFeature, tf.SparseFeature]]
    """
    Convert a serialized tf.metadata Schema file to a Tensorflow feature_spec object
    """
    schema = parse_schema_file(schema_path)
    return schema_to_feature_spec(schema)