Skip to content

Commit

Permalink
[GraphBolt] PyG advanced example torch.compile() bug workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfbalin committed Apr 3, 2024
1 parent b743cde commit ac097d1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@

import dgl.graphbolt as gb
import torch

Check warning on line 56 in examples/sampling/graphbolt/pyg/node_classification_advanced.py

View workflow job for this annotation

GitHub Actions / lintrunner

UFMT format

Run `lintrunner -a` to apply this patch.
# Needed until https://github.com/pytorch/pytorch/issues/121197 is resolved to
# use the `--torch-compile` cmdline option reliably.
import torch._inductor.codecache
import torch.nn.functional as F
import torchmetrics.functional as MF
from torch_geometric.nn import SAGEConv
Expand Down

0 comments on commit ac097d1

Please sign in to comment.