Skip to content

Commit

Permalink
Add dropout to CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
milancurcic committed Jan 23, 2025
1 parent b04d447 commit 544b23a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ add_library(neural-fortran
src/nf/nf_reshape_layer_submodule.f90
src/nf/io/nf_io_binary.f90
src/nf/io/nf_io_binary_submodule.f90
src/nf/nf_dropout_layer.f90
src/nf/nf_dropout_layer_submodule.f90
)

target_link_libraries(neural-fortran PRIVATE)
Expand Down
1 change: 1 addition & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
foreach(execid
input1d_layer
input3d_layer
dropout_layer
parametric_activation
dense_layer
conv2d_layer
Expand Down
2 changes: 1 addition & 1 deletion test/test_dropout_layer.f90
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ program test_dropout_layer
end if
end do
if (.not. ok) then
write(stderr, '(a)') 'dropout layer output sum should match input sum within 1% tolerance.. failed'
write(stderr, '(a)') 'dropout layer output sum should match input sum within tolerance.. failed'
end if
end block forward_pass

Expand Down

0 comments on commit 544b23a

Please sign in to comment.