Skip to content

Commit e34671e

Browse files
authored
Add missing update for conv2d_layer (#141)
1 parent f6c0854 commit e34671e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/nf/nf_layer_submodule.f90

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,14 @@ end subroutine set_params
383383

384384

385385
impure elemental module subroutine update(self, learning_rate)
386-
implicit none
387386
class(layer), intent(in out) :: self
388387
real, intent(in) :: learning_rate
389388

390-
select type(this_layer => self % p); type is(dense_layer)
391-
call this_layer % update(learning_rate)
389+
select type(this_layer => self % p)
390+
type is(dense_layer)
391+
call this_layer % update(learning_rate)
392+
type is(conv2d_layer)
393+
call this_layer % update(learning_rate)
392394
end select
393395

394396
end subroutine update

0 commit comments

Comments
 (0)