clinplayer / Point2Skeleton

Point2Skeleton: Learning Skeletal Representations from Point Clouds (CVPR2021)
MIT License
206 stars 38 forks source link

Deprecation of torch._six.int_classes and suggested replacement #23

Closed chaidosa closed 1 year ago

chaidosa commented 1 year ago

Description: The import statement from torch._six import int_classes is currently deprecated. After investigating, it was found that the suggested replacement for this is int_classes = (bool, int). Steps to reproduce:

  1. Attempt to import int_classes using from torch._six import int_classes
  2. Observe the error. Suggested Solution: Use int_classes = (bool, int) instead of importing int_classes from torch._six.

Expected Outcome: The code that previously used from torch._six import int_classes should be updated to use int_classes = (bool, int) to avoid the deprecation error.

Additional Information: This change was introduced in the newer release of PyTorch and can be found in the documentation.

clinplayer commented 1 year ago

It seems the issue is caused by the usage of a higher version of torch. Thanks for pointing it out.