Skip to content

Commit edb2b83

Browse files
authored
fix compilation for torch v2.2.1 (#124)
Mark cudagraph begin in compilation. Fixes #123
1 parent 075ae42 commit edb2b83

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lightglue/lightglue.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ def compile(
438438
stacklevel=2,
439439
)
440440

441+
torch._inductor.cudagraph_mark_step_begin()
441442
for i in range(self.conf.n_layers):
442443
self.transformers[i].masked_forward = torch.compile(
443444
self.transformers[i].masked_forward, mode=mode, fullgraph=True

0 commit comments

Comments
 (0)