Skip to content

Commit be06f51

Browse files
authored
Merge pull request #3 from jvdp1/dropout
Small changes for the dropout layer
2 parents 35671dd + 1cd9e2c commit be06f51

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/nf/nf_layer_submodule.f90

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,14 @@ impure elemental module subroutine print_info(self)
359359
if (.not. self % name == 'input') &
360360
print '("Input shape: ", *(i0, 1x))', self % input_layer_shape
361361
print '("Output shape: ", *(i0, 1x))', self % layer_shape
362-
print '("Parameters: ", i0)', self % get_num_params()
363-
if (.not. self % name == 'input') &
362+
if (.not. self % name == 'dropout') &
363+
print '("Parameters: ", i0)', self % get_num_params()
364+
if (.not. (self % name == 'input' .or. self % name == 'dropout')) &
364365
print '("Activation: ", a)', self % activation
366+
select type (this_layer => self % p)
367+
type is (dropout_layer)
368+
print '("Dropout rate: ", f0.2)', this_layer % dropout_rate
369+
end select
365370
print *
366371
end subroutine print_info
367372

0 commit comments

Comments
 (0)