@@ -65,7 +65,7 @@ pure module subroutine forward(self, input)
65
65
do j = 1 , self % width
66
66
iws = j
67
67
iwe = j + self % kernel_size - 1
68
- do concurrent ( n = 1 : self % filters)
68
+ do n = 1 , self % filters
69
69
self % z(n, j) = sum (self % kernel(n, j, :, :) * input(:, iws:iwe)) + self % biases(n, j)
70
70
end do
71
71
end do
@@ -125,13 +125,13 @@ end function get_num_params
125
125
module function get_params (self ) result(params)
126
126
class(locally_connected_1d_layer), intent (in ), target :: self
127
127
real , allocatable :: params(:)
128
- params = [reshape ( self % kernel, [ size ( self % kernel)]), reshape (self % biases, [ size (self % biases)]) ]
128
+ params = [self % kernel, self % biases]
129
129
end function get_params
130
130
131
131
module function get_gradients (self ) result(gradients)
132
132
class(locally_connected_1d_layer), intent (in ), target :: self
133
133
real , allocatable :: gradients(:)
134
- gradients = [reshape ( self % dw, [ size ( self % dw)]), reshape (self % db, [ size (self % db)]) ]
134
+ gradients = [self % dw, self % db ]
135
135
end function get_gradients
136
136
137
137
module subroutine set_params (self , params )
0 commit comments