@@ -11,11 +11,11 @@ module nf_linear2d_layer
1111 type, extends(base_layer) :: linear2d_layer
1212 integer :: sequence_length, in_features, out_features, batch_size
1313
14- real , allocatable :: weights(:, :)
14+ real , allocatable :: weights(:,:)
1515 real , allocatable :: biases(:)
16- real , allocatable :: output(:, :)
17- real , allocatable :: gradient(:, :) ! input gradient
18- real , allocatable :: dw(:, :) ! weight gradients
16+ real , allocatable :: output(:,:)
17+ real , allocatable :: gradient(:,:) ! input gradient
18+ real , allocatable :: dw(:,:) ! weight gradients
1919 real , allocatable :: db(:) ! bias gradients
2020
2121 contains
@@ -40,13 +40,13 @@ end function linear2d_layer_cons
4040 interface
4141 pure module subroutine forward(self, input)
4242 class(linear2d_layer), intent (in out ) :: self
43- real , intent (in ) :: input(:, :)
43+ real , intent (in ) :: input(:,:)
4444 end subroutine forward
4545
4646 pure module subroutine backward(self, input, gradient)
4747 class(linear2d_layer), intent (in out ) :: self
48- real , intent (in ) :: input(:, :)
49- real , intent (in ) :: gradient(:, :)
48+ real , intent (in ) :: input(:,:)
49+ real , intent (in ) :: gradient(:,:)
5050 end subroutine backward
5151
5252 module subroutine init (self , input_shape )
0 commit comments