Skip to content

Commit

Permalink
models.py: absolute import layers.GraphConvolution
Browse files Browse the repository at this point in the history
The relative import statement fails when pygcn is installed and used as a package. Using the absolute import (like in train.py) lets the program be run in any context.
  • Loading branch information
wbadart authored Oct 17, 2018
1 parent 5488806 commit ec1b125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygcn/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import torch.nn as nn
import torch.nn.functional as F
from layers import GraphConvolution
from pygcn.layers import GraphConvolution


class GCN(nn.Module):
Expand Down

0 comments on commit ec1b125

Please sign in to comment.