Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
qubvel committed Jan 15, 2025
1 parent 17a4b70 commit 20564f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/encoders/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ def test_compile(self):
encoder = encoder.eval().to(default_device)

torch.compiler.reset()
compiled_encoder = torch.compile(encoder, fullgraph=True, dynamic=True, backend="eager")
compiled_encoder = torch.compile(
encoder, fullgraph=True, dynamic=True, backend="eager"
)

if encoder._is_torch_compilable:
compiled_encoder(sample)
Expand Down
4 changes: 3 additions & 1 deletion tests/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ def test_compile(self):
model = model.eval().to(default_device)

torch.compiler.reset()
compiled_model = torch.compile(model, fullgraph=True, dynamic=True, backend="eager")
compiled_model = torch.compile(
model, fullgraph=True, dynamic=True, backend="eager"
)

with torch.inference_mode():
compiled_model(sample)
Expand Down

0 comments on commit 20564f2

Please sign in to comment.