Skip to content

Commit 3d2b148

Browse files
committed
Fix indentation
1 parent 3702c20 commit 3d2b148

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/nf_dense_layer_submodule.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ pure module subroutine backward(self, input, gradient)
2424
real :: db(self % output_size)
2525
real :: dw(self % input_size, self % output_size)
2626

27-
db = gradient * self % activation_prime(self % z)
28-
dw = matmul(reshape(input, [size(input), 1]), reshape(db, [1, size(db)]))
29-
self % gradient = matmul(self % weights, db)
30-
self % dw = self % dw + dw
31-
self % db = self % db + db
27+
db = gradient * self % activation_prime(self % z)
28+
dw = matmul(reshape(input, [size(input), 1]), reshape(db, [1, size(db)]))
29+
self % gradient = matmul(self % weights, db)
30+
self % dw = self % dw + dw
31+
self % db = self % db + db
3232

3333
end subroutine backward
3434

0 commit comments

Comments
 (0)