File tree 1 file changed +5
-18
lines changed
1 file changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ module nf_rnn_layer
40
40
procedure :: get_params
41
41
procedure :: init
42
42
procedure :: set_params
43
- procedure :: set_state
43
+ ! procedure :: set_state
44
44
45
45
end type rnn_layer
46
46
@@ -127,24 +127,11 @@ module subroutine init(self, input_shape)
127
127
! ! Shape of the input layer
128
128
end subroutine init
129
129
130
- module subroutine reset (self )
131
- ! ! Reset layer state
132
- ! !
133
- ! ! Currently reset state to zero but might be worth reconsidering it
134
- ! ! in the future.
135
- class(rnn_layer), intent (in out ) :: self
136
- end subroutine reset
130
+ ! module subroutine set_state(self, state)
131
+ ! type(rnn_layer), intent(inout) :: self
132
+ ! real, intent(in), optional :: state(:)
133
+ ! end subroutine set_state
137
134
138
135
end interface
139
136
140
- subroutine set_state (self , state )
141
- type (rnn_layer), intent (inout ) :: self
142
- real , intent (in ), optional :: state(:)
143
- if (present (state)) then
144
- self % state = state
145
- else
146
- self % state = 0
147
- end if
148
- end subroutine set_state
149
-
150
137
end module nf_rnn_layer
You can’t perform that action at this time.
0 commit comments