mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-16 03:38:44 +00:00
wrappers.vector.NumpyToTorch
uses Device
from wrappers.NumpyTorch
not JaxToTorch
(#1308)
This commit is contained in:
@@ -24,7 +24,7 @@ except ImportError:
|
||||
)
|
||||
|
||||
|
||||
__all__ = ["NumpyToTorch", "torch_to_numpy", "numpy_to_torch"]
|
||||
__all__ = ["NumpyToTorch", "torch_to_numpy", "numpy_to_torch", "Device"]
|
||||
|
||||
# The NoneType is not defined in Python 3.9. Remove when the minimal version is bumped to >=3.10
|
||||
_NoneType = type(None)
|
||||
|
Reference in New Issue
Block a user