PetrochukM / PyTorch-NLP

Basic Utilities for PyTorch Natural Language Processing (NLP)
https://pytorchnlp.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.21k stars 257 forks source link

Fix import problem with pytorch v1.9.x #115

Closed qqaatw closed 2 years ago

qqaatw commented 2 years ago

In pytorch v.1.9.x, the int_classes variable in torch._six was removed. Therefore, I removed this import and replaced the _int_classes variable with int.

Ref: https://github.com/pytorch/pytorch/pull/49785

qqaatw commented 2 years ago

@PetrochukM How do I trigger the CI checks?