Skip to content

Commit

Permalink
Change compile backend to eager
Browse files Browse the repository at this point in the history
  • Loading branch information
qubvel committed Jan 15, 2025
1 parent 524bcae commit a2b97d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/encoders/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def test_compile(self):
encoder = encoder.eval().to(default_device)

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

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

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

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

0 comments on commit a2b97d8

Please sign in to comment.