Skip to content

Commit 745c2d6

Browse files
committed
Might not use set_state at rnn_layer level
1 parent 2c8baf2 commit 745c2d6

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

src/nf/nf_rnn_layer.f90

+5-18
Original file line numberDiff line numberDiff 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-
150137
end module nf_rnn_layer

0 commit comments

Comments
 (0)