Skip to content

Commit c5493ec

Browse files
authored
[BugFix] Run checks when creating fake_td (#877)
1 parent 835cd40 commit c5493ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchrl/envs/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def fake_tensordict(self) -> TensorDictBase:
774774
},
775775
batch_size=self.batch_size,
776776
device=self.device,
777-
_run_checks=False,
777+
_run_checks=True, # this method should not be run very often. This facilitates debugging
778778
)
779779
return fake_td
780780

0 commit comments

Comments
 (0)