def schema_txt_file_to_feature_spec()

in spotify_tensorflow/tf_schema_utils.py [0:0]


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