Skip to content

Commit c0d8387

Browse files
authored
Update dqn_with_rnn_tutorial.py
1 parent 5d53ab4 commit c0d8387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/dqn_with_rnn_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@
238238
device=device,
239239
in_key="embed",
240240
out_key="embed",
241+
default_recurrent_mode=True,
241242
)
242243

243244
######################################################################
@@ -342,7 +343,6 @@
342343
# will return a new instance of the LSTM (with shared weights) that will
343344
# assume that the input data is sequential in nature.
344345
#
345-
lstm = torch.nn.LSTM(input_size, hidden_size, num_layers, default_recurrent_mode=True)
346346
policy = Seq(feature, lstm, mlp, qval)
347347

348348
######################################################################

0 commit comments

Comments
 (0)