asyml / texar-pytorch

Integrating the Best of TF into PyTorch, for Machine Learning, Natural Language Processing, and Text Generation. This is part of the CASL project: http://casl-project.ai/
https://asyml.io
Apache License 2.0
744 stars 118 forks source link

Compatibility update with pytorch>=1.7 #341

Closed mylibrar closed 2 years ago

mylibrar commented 3 years ago

Texar is not fully tested with the new release of PyTorch after 1.7.0. One particular problem is the newly introduced type annotations for PyTorch. This change will at least make mypy raise type errors.

To update to the new PyTorch version, the mypy-raised errors should be reviewed and fixed accordingly.

To get the list of typing errors, run mypy . with PyTorch >=1.7.1, or check the previously workflow log: https://github.com/mylibrar/texar-pytorch/runs/3001591121?check_suite_focus=true