uber / petastorm

Petastorm library enables single machine or distributed training and evaluation of deep learning models from datasets in Apache Parquet format. It supports ML frameworks such as Tensorflow, Pytorch, and PySpark and can be used from pure Python code.
Apache License 2.0
1.78k stars 285 forks source link

Importing ABC directly from collections was deprecated and will be removed in Python 3.10. Use collections.abc #550

Open tirkarthi opened 4 years ago

tirkarthi commented 4 years ago
petastorm/predicates.py
69:        if not isinstance(values[self._predicate_field], collections.Iterable):

petastorm/pytorch.py
86:    elif isinstance(batch[0], collections.Mapping):
90:    elif isinstance(batch[0], collections.Sequence):

petastorm/reader.py
352:        if not (isinstance(schema_fields, collections.Iterable) or isinstance(schema_fields, NGram)
392:            fields = schema_fields if isinstance(schema_fields, collections.Iterable) else None