Skip to content

Add missing update for conv2d_layer #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/nf/nf_layer_submodule.f90
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,14 @@ end subroutine set_params


impure elemental module subroutine update(self, learning_rate)
implicit none
class(layer), intent(in out) :: self
real, intent(in) :: learning_rate

select type(this_layer => self % p); type is(dense_layer)
call this_layer % update(learning_rate)
select type(this_layer => self % p)
type is(dense_layer)
call this_layer % update(learning_rate)
type is(conv2d_layer)
call this_layer % update(learning_rate)
end select

end subroutine update
Expand Down