Skip to content

Commit

Permalink
[Testing] Remove redundant models in hidet.testing (#44)
Browse files Browse the repository at this point in the history
* remove redundent models in hidet.testing

* format
  • Loading branch information
yaoyaoding committed Dec 25, 2022
1 parent f60c3e9 commit 9f5d20a
Show file tree
Hide file tree
Showing 17 changed files with 5 additions and 1,742 deletions.
3 changes: 2 additions & 1 deletion gallery/getting-started/quick-start.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
x = torch.randn(1, 3, 224, 224).cuda()
model = torch.hub.load(
'pytorch/vision:v0.9.0', 'resnet18', pretrained=True, verbose=False
).cuda().eval()
)
model = model.cuda().eval()

# we should register the hidet backend for pytorch dynamo
# only need to do this if you import hidet before torch. Otherwise, it is done automatically
Expand Down
4 changes: 3 additions & 1 deletion gallery/tutorials/optimize-pytorch-model.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@
x = torch.randn(1, 3, 224, 224).cuda()
model = torch.hub.load(
'pytorch/vision:v0.9.0', 'resnet18', pretrained=True, verbose=False
).cuda().eval()
)
model = model.cuda().eval()


torch.backends.cudnn.allow_tf32 = (
False # tf32 would harm the effective precision of torch's results
Expand Down
1 change: 0 additions & 1 deletion python/hidet/testing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from . import hidet_models
from . import utils

from .utils import benchmark_func, check_unary, check_binary, check_torch_unary, check_torch_binary
246 changes: 0 additions & 246 deletions python/hidet/testing/bench.py

This file was deleted.

11 changes: 0 additions & 11 deletions python/hidet/testing/hidet_models/__init__.py

This file was deleted.

0 comments on commit 9f5d20a

Please sign in to comment.