Skip to content

Commit

Permalink
docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Dec 4, 2023
1 parent 2714b62 commit a7b7425
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions torchrl/data/datasets/minari_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,17 @@ class MinariExperienceReplay(TensorDictReplayBuffer):
fields={
success: Tensor(shape=torch.Size([32]), device=cpu, dtype=torch.bool, is_shared=False)},
batch_size=torch.Size([32]),
device=None,
device=cpu,
is_shared=False),
next: TensorDict(
fields={
done: Tensor(shape=torch.Size([32, 1]), device=cpu, dtype=torch.bool, is_shared=False),
info: TensorDict(
fields={
success: Tensor(shape=torch.Size([32]), device=cpu, dtype=torch.bool, is_shared=False)},
batch_size=torch.Size([32]),
device=cpu,
is_shared=False),
observation: Tensor(shape=torch.Size([32, 39]), device=cpu, dtype=torch.float64, is_shared=False),
reward: Tensor(shape=torch.Size([32, 1]), device=cpu, dtype=torch.float64, is_shared=False),
state: TensorDict(
Expand All @@ -117,12 +124,12 @@ class MinariExperienceReplay(TensorDictReplayBuffer):
qpos: Tensor(shape=torch.Size([32, 30]), device=cpu, dtype=torch.float64, is_shared=False),
qvel: Tensor(shape=torch.Size([32, 30]), device=cpu, dtype=torch.float64, is_shared=False)},
batch_size=torch.Size([32]),
device=None,
device=cpu,
is_shared=False),
terminated: Tensor(shape=torch.Size([32, 1]), device=cpu, dtype=torch.bool, is_shared=False),
truncated: Tensor(shape=torch.Size([32, 1]), device=cpu, dtype=torch.bool, is_shared=False)},
batch_size=torch.Size([32]),
device=None,
device=cpu,
is_shared=False),
observation: Tensor(shape=torch.Size([32, 39]), device=cpu, dtype=torch.float64, is_shared=False),
state: TensorDict(
Expand All @@ -131,10 +138,10 @@ class MinariExperienceReplay(TensorDictReplayBuffer):
qpos: Tensor(shape=torch.Size([32, 30]), device=cpu, dtype=torch.float64, is_shared=False),
qvel: Tensor(shape=torch.Size([32, 30]), device=cpu, dtype=torch.float64, is_shared=False)},
batch_size=torch.Size([32]),
device=None,
device=cpu,
is_shared=False)},
batch_size=torch.Size([32]),
device=None,
device=cpu,
is_shared=False)
"""
Expand Down

0 comments on commit a7b7425

Please sign in to comment.