Skip to content

Commit

Permalink
[BugFix] Fix KL import errors (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored May 30, 2023
1 parent e8f5efe commit 7ed63a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchrl/envs/transforms/rlhf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
repopulate_module,
)
from tensordict.utils import _normalize_key, is_seq_of_nested_key
from torchrl.data import CompositeSpec, UnboundedContinuousTensorSpec
from torchrl.envs import Transform
from torchrl.data.tensor_specs import CompositeSpec, UnboundedContinuousTensorSpec
from torchrl.envs.transforms.transforms import Transform


class KLRewardTransform(Transform):
Expand Down

0 comments on commit 7ed63a2

Please sign in to comment.