Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions autogl/module/model/pyg/robust/gnnguard.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def att_coef(self, fea, edge_index, is_lil=False, i=0):

def add_loop_sparse(self, adj, fill_value=1):
# make identify sparse tensor
row = torch.range(0, int(adj.shape[0]-1), dtype=torch.int64)
row = torch.arange(0, adj.shape[0], dtype=torch.int64)
i = torch.stack((row, row), dim=0)
v = torch.ones(adj.shape[0], dtype=torch.float32)
shape = adj.shape
Expand Down Expand Up @@ -388,7 +388,7 @@ def forward(self, x, adj_lil):

def add_loop_sparse(self, adj, fill_value=1):
# make identify sparse tensor
row = torch.range(0, int(adj.shape[0]-1), dtype=torch.int64)
row = torch.arange(0, adj.shape[0], dtype=torch.int64)
i = torch.stack((row, row), dim=0)
v = torch.ones(adj.shape[0], dtype=torch.float32)
shape = adj.shape
Expand Down
2 changes: 1 addition & 1 deletion autogl/module/nas/space/grna.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def att_coef(self, fea, edge_index, is_lil=False, i=0):

def add_loop_sparse(self, adj, fill_value=1):
# make identify sparse tensor
row = torch.range(0, int(adj.shape[0]-1), dtype=torch.int64)
row = torch.arange(0, adj.shape[0], dtype=torch.int64)
i = torch.stack((row, row), dim=0)
v = torch.ones(adj.shape[0], dtype=torch.float32)
shape = adj.shape
Expand Down