Skip to content

Commit

Permalink
Some modifications for backward propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
buttercutter committed May 29, 2022
1 parent 6d86824 commit 94bffd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gdas.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ def forward(self, x, types=None):
edges_results = edges_results.cuda()

for e in range(NUM_OF_MIXED_OPS):
edges_results = edges_results + self.edges[e].forward(x, types)
with torch.no_grad():
edges_results = edges_results + self.edges[e].forward(x, types)

return edges_results * DECAY_FACTOR

Expand Down

0 comments on commit 94bffd1

Please sign in to comment.