Skip to content

Commit

Permalink
Move torch-based import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni-SM committed Oct 13, 2024
1 parent 155240b commit 56439e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
13 changes: 7 additions & 6 deletions skrl/envs/wrappers/jax/isaacgym_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
import torch.utils.dlpack as torch_dlpack
except:
pass # TODO: show warning message
else:
from skrl.utils.spaces.torch import (
convert_gym_space,
flatten_tensorized_space,
tensorize_space,
unflatten_tensorized_space
)

from skrl import logger
from skrl.envs.wrappers.jax.base import Wrapper
from skrl.utils.spaces.torch import (
convert_gym_space,
flatten_tensorized_space,
tensorize_space,
unflatten_tensorized_space
)


# ML frameworks conversion utilities
Expand Down
3 changes: 2 additions & 1 deletion skrl/envs/wrappers/jax/isaaclab_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
import torch.utils.dlpack as torch_dlpack
except:
pass # TODO: show warning message
else:
from skrl.utils.spaces.torch import flatten_tensorized_space, tensorize_space, unflatten_tensorized_space

from skrl import logger
from skrl.envs.wrappers.jax.base import MultiAgentEnvWrapper, Wrapper
from skrl.utils.spaces.torch import flatten_tensorized_space, tensorize_space, unflatten_tensorized_space


# ML frameworks conversion utilities
Expand Down
3 changes: 2 additions & 1 deletion skrl/envs/wrappers/jax/omniverse_isaacgym_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
import torch.utils.dlpack as torch_dlpack
except:
pass # TODO: show warning message
else:
from skrl.utils.spaces.torch import flatten_tensorized_space, tensorize_space, unflatten_tensorized_space

from skrl import logger
from skrl.envs.wrappers.jax.base import Wrapper
from skrl.utils.spaces.torch import flatten_tensorized_space, tensorize_space, unflatten_tensorized_space


# ML frameworks conversion utilities
Expand Down

0 comments on commit 56439e0

Please sign in to comment.