Skip to content

Commit c076c0c

Browse files
committed
Update (base update)
[ghstack-poisoned]
1 parent 6508658 commit c076c0c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

torchrl/envs/batched_envs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,6 @@ def _step(self, tensordict: TensorDictBase) -> TensorDictBase:
18751875
tensordict = tensordict[partial_steps].to(
18761876
self.shared_tensordict_parent.device
18771877
)
1878-
shared_tensordict_parent = shared_tensordict_parent[partial_steps]
18791878
else:
18801879
workers_range = range(self.num_workers)
18811880
shared_tensordict_parent = self.shared_tensordict_parent

torchrl/envs/transforms/transforms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9103,7 +9103,6 @@ class _CallableTransform(Transform):
91039103
# A wrapper around a custom callable to make it possible to transform any data type
91049104
def __init__(self, func):
91059105
super().__init__()
9106-
raise RuntimeError(isinstance(func, Transform), func)
91079106
self.func = func
91089107

91099108
def forward(self, *args, **kwargs):

0 commit comments

Comments
 (0)