Skip to content

Commit 5929e7c

Browse files
committed
Add devices
1 parent ff8b311 commit 5929e7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

advanced_source/coding_ddpg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ def ceil_div(x, y):
10401040

10411041
###############################################################################
10421042
# let's use the TD(lambda) estimator!
1043-
loss_module.make_value_estimator(ValueEstimators.TDLambda, gamma=gamma, lmbda=lmbda)
1043+
loss_module.make_value_estimator(ValueEstimators.TDLambda, gamma=gamma, lmbda=lmbda, device=device)
10441044

10451045
###############################################################################
10461046
# .. note::

intermediate_source/reinforcement_ppo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@
551551
#
552552

553553
advantage_module = GAE(
554-
gamma=gamma, lmbda=lmbda, value_network=value_module, average_gae=True
554+
gamma=gamma, lmbda=lmbda, value_network=value_module, average_gae=True, device=device,
555555
)
556556

557557
loss_module = ClipPPOLoss(

0 commit comments

Comments
 (0)