Skip to content

Commit

Permalink
fix: New access point to 'loss % derivative'
Browse files Browse the repository at this point in the history
Previously `quadratic_derivative`.
  • Loading branch information
castelao committed Jun 25, 2024
1 parent 745c2d6 commit 1de7744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nf/nf_network_submodule.f90
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ pure module subroutine backward(self, output, loss)
type is(rnn_layer)
call self % layers(n) % backward( &
self % layers(n - 1), &
quadratic_derivative(output, this_layer % output) &
self % loss % derivative(output, this_layer % output) &
)
end select
else
Expand Down

0 comments on commit 1de7744

Please sign in to comment.