Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Testing] Remove redundant models in hidet.testing #44

Merged
merged 2 commits into from
Dec 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.