Skip to content

Commit 544b23a

Browse files
committed
Add dropout to CMake
1 parent b04d447 commit 544b23a

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ add_library(neural-fortran
5151
src/nf/nf_reshape_layer_submodule.f90
5252
src/nf/io/nf_io_binary.f90
5353
src/nf/io/nf_io_binary_submodule.f90
54+
src/nf/nf_dropout_layer.f90
55+
src/nf/nf_dropout_layer_submodule.f90
5456
)
5557

5658
target_link_libraries(neural-fortran PRIVATE)

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
foreach(execid
22
input1d_layer
33
input3d_layer
4+
dropout_layer
45
parametric_activation
56
dense_layer
67
conv2d_layer

test/test_dropout_layer.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ program test_dropout_layer
8787
end if
8888
end do
8989
if (.not. ok) then
90-
write(stderr, '(a)') 'dropout layer output sum should match input sum within 1% tolerance.. failed'
90+
write(stderr, '(a)') 'dropout layer output sum should match input sum within tolerance.. failed'
9191
end if
9292
end block forward_pass
9393

0 commit comments

Comments
 (0)