lessw2020 / Ranger21

Ranger deep learning optimizer rewrite to use newest components
Apache License 2.0
321 stars 45 forks source link

AttributeError: module 'collections' has no attribute 'Callable' #43

Closed JackKelly closed 2 years ago

JackKelly commented 2 years ago
  File "/home/jack/miniconda3/envs/power_perceiver/lib/python3.10/site-packages/ranger21/ranger21.py", line 578, in step
    if closure is not None and isinstance(closure, collections.Callable):
AttributeError: module 'collections' has no attribute 'Callable'

collections.Callable was moved to collections.abs.Callable back in Python 3.3 :slightly_smiling_face:

Please see: https://github.com/rbarrois/xworkflows/issues/16

I will submit a pull request to fix this ASAP :slightly_smiling_face: