Skip to content

Commit

Permalink
feat: layer getting gradient from RNN
Browse files Browse the repository at this point in the history
  • Loading branch information
castelao committed Nov 14, 2023
1 parent 1bef0aa commit 9d2f634
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nf/nf_layer_submodule.f90
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@ pure module function get_gradients(self) result(gradients)
! No gradients to get.
type is (reshape3d_layer)
! No gradients to get.
type is (rnn_layer)
gradients = this_layer % get_gradients()
class default
error stop 'get_gradients() with unknown layer type.'
end select
Expand Down

0 comments on commit 9d2f634

Please sign in to comment.