Skip to content

Commit

Permalink
[BugFix] Fix lib tests (pytorch#2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Apr 25, 2024
1 parent d8a60df commit 583e2a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/test_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2824,7 +2824,7 @@ def preproc(data):
preproc,
num_workers=max(1, os.cpu_count() - 4),
num_chunks=1000,
mp_start_method="fork",
# mp_start_method="fork",
pbar=True,
dest=tmpdir,
num_frames=100,
Expand Down Expand Up @@ -3000,7 +3000,7 @@ def fn(data: TensorDict):
CloudpickleWrapper(fn),
num_workers=max(1, os.cpu_count() - 2),
num_chunks=500,
mp_start_method="fork",
# mp_start_method="fork",
dest=tmpdir,
)
dataset = ReplayBuffer(storage=new_storage)
Expand Down
4 changes: 2 additions & 2 deletions torchrl/envs/libs/jumanji.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def _jumanji_to_torchrl_spec_transform(
dtype = numpy_to_torch_dtype_dict[spec.dtype]
return BoundedTensorSpec(
shape=shape,
low=np.asarray(spec.low),
high=np.asarray(spec.high),
low=np.asarray(spec.minimum),
high=np.asarray(spec.maximum),
dtype=dtype,
device=device,
)
Expand Down

0 comments on commit 583e2a1

Please sign in to comment.