Skip to content

Commit

Permalink
remove some unneeded pack()
Browse files Browse the repository at this point in the history
  • Loading branch information
Vandenplas, Jeremie committed May 5, 2024
1 parent cff9b2c commit e059b83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/nf/nf_conv2d_layer_submodule.f90
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ pure module function get_params(self) result(params)

params = [ &
pack(self % kernel, .true.), &
pack(self % biases, .true.) &
self % biases &
]

end function get_params
Expand All @@ -207,7 +207,7 @@ pure module function get_gradients(self) result(gradients)

gradients = [ &
pack(self % dw, .true.), &
pack(self % db, .true.) &
self % db &
]

end function get_gradients
Expand Down
4 changes: 2 additions & 2 deletions src/nf/nf_dense_layer_submodule.f90
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pure module function get_params(self) result(params)

params = [ &
pack(self % weights, .true.), &
pack(self % biases, .true.) &
self % biases &
]

end function get_params
Expand All @@ -79,7 +79,7 @@ pure module function get_gradients(self) result(gradients)

gradients = [ &
pack(self % dw, .true.), &
pack(self % db, .true.) &
self % db &
]

end function get_gradients
Expand Down

0 comments on commit e059b83

Please sign in to comment.