File tree Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Expand file tree Collapse file tree 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
4040 procedure :: get_params
4141 procedure :: init
4242 procedure :: set_params
43- procedure :: set_state
43+ ! procedure :: set_state
4444
4545 end type rnn_layer
4646
@@ -127,24 +127,11 @@ module subroutine init(self, input_shape)
127127 ! ! Shape of the input layer
128128 end subroutine init
129129
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
137134
138135 end interface
139136
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-
150137end module nf_rnn_layer
You can’t perform that action at this time.
0 commit comments