Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Nov 27, 2023
1 parent aedcf29 commit f3cc664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/objectives/ddpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def __init__(
params = TensorDict.from_module(actor_critic)
params_meta = params.apply(self._make_meta_params, device=torch.device("meta"))
with params_meta.to_module(actor_critic):
self.actor_critic = deepcopy(actor_critic)
self.__dict__["actor_critic"] = deepcopy(actor_critic)

self.convert_to_functional(
actor_network,
Expand Down

0 comments on commit f3cc664

Please sign in to comment.