Skip to content

refactor: Applied py linter #753

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

Merged
merged 1 commit into from
Dec 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/py/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ def test_compile_traced(self):
def test_compile_script(self):
with torch.no_grad():
trt_mod = torchtrt.ts.compile(self.scripted_model,
inputs=[self.input],
device=torchtrt.Device(gpu_id=0),
enabled_precisions={torch.float})
inputs=[self.input],
device=torchtrt.Device(gpu_id=0),
enabled_precisions={torch.float})
same = (trt_mod(self.input) - self.scripted_model(self.input)).abs().max()
self.assertTrue(same < 2e-2)

Expand All @@ -49,9 +49,9 @@ def test_compile_global(self):
def test_compile_global_nn_mod(self):
with torch.no_grad():
trt_mod = torchtrt.compile(self.model,
inputs=[self.input],
device=torchtrt.Device(gpu_id=0),
enabled_precisions={torch.float})
inputs=[self.input],
device=torchtrt.Device(gpu_id=0),
enabled_precisions={torch.float})
same = (trt_mod(self.input) - self.scripted_model(self.input)).abs().max()
self.assertTrue(same < 2e-2)

Expand Down