Skip to content

Commit d098beb

Browse files
bottlerfacebook-github-bot
authored andcommitted
allow python 3.12
Summary: Remove use of distutils Reviewed By: MichaelRamamonjisoa Differential Revision: D81594552 fbshipit-source-id: 4e979d5e03ea873bd09bc2b674b7e6480b9c6d65
1 parent dd06870 commit d098beb

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

tests/test_rotation_conversions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import itertools
99
import math
1010
import unittest
11-
from distutils.version import LooseVersion
1211
from typing import Optional, Union
1312

1413
import numpy as np
@@ -271,7 +270,6 @@ def test_6d(self):
271270
torch.matmul(r, r.permute(0, 2, 1)), torch.eye(3).expand_as(r), atol=1e-6
272271
)
273272

274-
@unittest.skipIf(LooseVersion(torch.__version__) < "1.9", "recent torchscript only")
275273
def test_scriptable(self):
276274
torch.jit.script(axis_angle_to_matrix)
277275
torch.jit.script(axis_angle_to_quaternion)

tests/test_so3.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import math
99
import unittest
10-
from distutils.version import LooseVersion
1110

1211
import numpy as np
1312
import torch
@@ -255,7 +254,6 @@ def test_so3_cos_bound(self, batch_size: int = 100):
255254
# all grad values have to be finite
256255
self.assertTrue(torch.isfinite(r.grad).all())
257256

258-
@unittest.skipIf(LooseVersion(torch.__version__) < "1.9", "recent torchscript only")
259257
def test_scriptable(self):
260258
torch.jit.script(so3_exp_map)
261259
torch.jit.script(so3_log_map)

0 commit comments

Comments
 (0)