Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbou92 committed Apr 28, 2024
1 parent d4499c6 commit 36d97ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion acegen/models/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import warnings

from torchrl.envs import Compose


def adapt_state_dict(source_state_dict: dict, target_state_dict: dict):
"""Adapt the source state dict to the target state dict.
Expand Down Expand Up @@ -47,5 +49,7 @@ def make_primers(submodule):
import warnings

raise warnings.warn("No primers found in the module.")
elif len(primers) == 1:
return primers[0]
else:
return primers
return Compose(primers)

0 comments on commit 36d97ac

Please sign in to comment.