Skip to content

Commit

Permalink
dev(narugo): torch.compile not support py3.11 yet
Browse files Browse the repository at this point in the history
  • Loading branch information
HansBug committed Aug 10, 2023
1 parent 88705f3 commit e0c78e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tree/integration/test_torch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest import skipUnless

import pytest
from hbutils.testing import vpip, OS
from hbutils.testing import vpip, OS, vpython

from treevalue import FastTreeValue, register_for_torch

Expand Down Expand Up @@ -62,7 +62,7 @@ class MyTreeValueX(FastTreeValue):
with pytest.warns(UserWarning):
register_for_torch(MyTreeValueX)

@skipUnless(vpip('torch') >= '2.0.0' and OS.linux, 'Torch 2 on linux platform required')
@skipUnless(vpip('torch') >= '2.0.0' and OS.linux and vpython < '3.11', 'Torch 2 on linux platform required')
def test_torch_compile(self):
@torch.compile
def foo(x, y, t):
Expand Down

0 comments on commit e0c78e2

Please sign in to comment.