[fx] fixed compatiblity issue with torch 1.10 (#1331)

This commit is contained in:
Frank Lee
2022-07-18 11:41:27 +08:00
committed by GitHub
parent 069d6fdc84
commit 75abc75c15
7 changed files with 32 additions and 28 deletions

View File

@@ -1,9 +1,5 @@
import torch
import pytest
try:
import timm.models as tm
except:
pass
import timm.models as tm
from colossalai.fx import ColoTracer
from torch.fx import GraphModule