Skip to content

Commit

Permalink
Update NeuralNet_2_0.py (microsoft#521)
Browse files Browse the repository at this point in the history
Fixed batch_a not returned in the forward function.
  • Loading branch information
fancy-mit-cse authored Jul 31, 2020
1 parent dfe03a1 commit 4cd094f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def forward(self, batch_x):
self.A2 = self.Z2
#end if
self.output = self.A2
return self.output

def backward(self, batch_x, batch_y, batch_a):
# 批量下降,需要除以样本数量,否则会造成梯度爆炸
Expand Down

0 comments on commit 4cd094f

Please sign in to comment.