@@ -45,8 +45,8 @@ pure module subroutine backward_1d(self, previous, gradient)
4545 call this_layer % backward(prev_layer % output, gradient)
4646 type is (maxpool2d_layer)
4747 call this_layer % backward(prev_layer % output, gradient)
48- type is (linear2d_layer)
49- call this_layer % backward(prev_layer % output, gradient)
48+ ! type is(linear2d_layer)
49+ ! call this_layer % backward(prev_layer % output, gradient)
5050 end select
5151
5252 end select
@@ -104,11 +104,11 @@ pure module subroutine backward_3d(self, previous, gradient)
104104 call this_layer % backward(prev_layer % output, gradient)
105105 end select
106106
107- type is (linear2d_layer)
108- select type (prev_layer = > previous % p)
109- type is (input3d_layer)
110- call this_layer % backward(prev_layer % output, gradient)
111- end select
107+ ! type is(linear2d_layer)
108+ ! select type(prev_layer => previous % p)
109+ ! type is(input3d_layer)
110+ ! call this_layer % backward(prev_layer % output, gradient)
111+ ! end select
112112
113113 end select
114114
@@ -174,8 +174,8 @@ pure module subroutine forward(self, input)
174174 call this_layer % forward(prev_layer % output)
175175 type is (reshape3d_layer)
176176 call this_layer % forward(prev_layer % output)
177- type is (linear2d_layer)
178- call this_layer % forward(prev_layer % output)
177+ ! type is(linear2d_layer)
178+ ! call this_layer % forward(prev_layer % output)
179179 end select
180180
181181 type is (reshape3d_layer)
@@ -190,13 +190,13 @@ pure module subroutine forward(self, input)
190190 call this_layer % forward(prev_layer % output)
191191 end select
192192
193- type is (linear2d_layer)
194- select type (prev_layer = > input % p)
195- type is (input3d_layer)
196- call this_layer % forward(prev_layer % output)
197- type is (linear2d_layer)
198- call this_layer % forward(prev_layer % output)
199- end select
193+ ! type is(linear2d_layer)
194+ ! select type(prev_layer => input % p)
195+ ! type is(input3d_layer)
196+ ! call this_layer % forward(prev_layer % output)
197+ ! type is(linear2d_layer)
198+ ! call this_layer % forward(prev_layer % output)
199+ ! end select
200200
201201 end select
202202
@@ -311,8 +311,8 @@ elemental module function get_num_params(self) result(num_params)
311311 num_params = 0
312312 type is (reshape3d_layer)
313313 num_params = 0
314- type is (linear2d_layer)
315- num_params = this_layer % get_num_params()
314+ ! type is (linear2d_layer)
315+ ! num_params = this_layer % get_num_params()
316316 class default
317317 error stop ' Unknown layer type.'
318318 end select
@@ -338,8 +338,8 @@ module function get_params(self) result(params)
338338 ! No parameters to get.
339339 type is (reshape3d_layer)
340340 ! No parameters to get.
341- type is (linear2d_layer)
342- params = this_layer % get_params()
341+ ! type is (linear2d_layer)
342+ ! params = this_layer % get_params()
343343 class default
344344 error stop ' Unknown layer type.'
345345 end select
@@ -365,8 +365,8 @@ module function get_gradients(self) result(gradients)
365365 ! No gradients to get.
366366 type is (reshape3d_layer)
367367 ! No gradients to get.
368- type is (linear2d_layer)
369- gradients = this_layer % get_gradients()
368+ ! type is (linear2d_layer)
369+ ! gradients = this_layer % get_gradients()
370370 class default
371371 error stop ' Unknown layer type.'
372372 end select
@@ -427,8 +427,8 @@ module subroutine set_params(self, params)
427427 class default
428428 error stop ' Unknown layer type.'
429429
430- type is (linear2d_layer)
431- call this_layer % set_params(params)
430+ ! type is (linear2d_layer)
431+ ! call this_layer % set_params(params)
432432 end select
433433
434434 end subroutine set_params
0 commit comments