Skip to content

Commit abdb7dc

Browse files
committed
fix: Getting biases
1 parent b406e88 commit abdb7dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nf/nf_rnn_layer_submodule.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ module subroutine set_params(self, params)
114114

115115
! reshape the biases
116116
first = last + 1
117+
last = first + self % output_size
117118
self % biases = reshape( &
118-
params(first:), &
119+
params(first:last), &
119120
[self % output_size] &
120121
)
121122

0 commit comments

Comments
 (0)