Skip to content

Commit 8c2669f

Browse files
authored
Allow torch device type to be a str. (#109)
1 parent 2fc1f78 commit 8c2669f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rsl_rl/env/vec_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class VecEnv(ABC):
3535
episode_length_buf: torch.Tensor
3636
"""Buffer for current episode lengths."""
3737

38-
device: torch.device
38+
device: torch.device | str
3939
"""Device to use."""
4040

4141
cfg: dict | object

0 commit comments

Comments
 (0)