Skip to content

Commit

Permalink
removed unnecessary .cuda()
Browse files Browse the repository at this point in the history
  • Loading branch information
sfujim authored May 18, 2018
1 parent 7baf951 commit 00ae5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TD3.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def forward(self, x, u):
class TD3(object):
def __init__(self, state_dim, action_dim, max_action):
self.actor = Actor(state_dim, action_dim, max_action)
self.actor_target = Actor(state_dim, action_dim, max_action).cuda()
self.actor_target = Actor(state_dim, action_dim, max_action)
self.actor_target.load_state_dict(self.actor.state_dict())
self.actor_optimizer = torch.optim.Adam(self.actor.parameters())

Expand Down

0 comments on commit 00ae5cd

Please sign in to comment.