Skip to content

Commit

Permalink
Merge pull request #271 from c0mm4nd/master
Browse files Browse the repository at this point in the history
Fix ModuleNotFoundError: No module named 'torch_geometric.utils.to_dense_adj'
  • Loading branch information
SherylHYX authored Oct 14, 2024
2 parents 9d1b5ab + 59bf3e6 commit b2833be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion torch_geometric_temporal/nn/attention/tsagcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import numpy as np
import torch.nn as nn
from torch.autograd import Variable
from torch_geometric.utils.to_dense_adj import to_dense_adj
try:
from torch_geometric.utils.to_dense_adj import to_dense_adj
except ImportError:
from torch_geometric.utils import to_dense_adj
import torch.nn.functional as F


Expand Down

0 comments on commit b2833be

Please sign in to comment.