python312Packages.torchrl: 0.4.0 -> 0.5.0

Diff: https://github.com/pytorch/rl/compare/refs/tags/v0.4.0...v0.5.0

Changelog: https://github.com/pytorch/rl/releases/tag/v0.5.0
This commit is contained in:
Gaetan Lepage 2024-08-17 00:22:04 +02:00
parent 68f829224e
commit 3c9a6abb81

View File

@ -3,13 +3,20 @@
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
# build-system
ninja,
setuptools,
wheel,
which,
# dependencies
cloudpickle,
numpy,
packaging,
tensordict,
torch,
# optional-dependencies
ale-py,
gym,
pygame,
@ -30,19 +37,20 @@
hydra-core,
tensorboard,
wandb,
packaging,
tensordict,
# checks
imageio,
pytest-rerunfailures,
pytestCheckHook,
pyyaml,
scipy,
stdenv,
}:
buildPythonPackage rec {
pname = "torchrl";
version = "0.4.0";
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.8";
@ -51,13 +59,12 @@ buildPythonPackage rec {
owner = "pytorch";
repo = "rl";
rev = "refs/tags/v${version}";
hash = "sha256-8wSyyErqveP9zZS/UGvWVBYyylu9BuA447GEjXIzBIk=";
hash = "sha256-uDpOdOuHTqKFKspHOpl84kD9adEKZjvO2GnYuL27H5c=";
};
build-system = [
ninja
setuptools
wheel
which
];
@ -69,7 +76,7 @@ buildPythonPackage rec {
torch
];
passthru.optional-dependencies = {
optional-dependencies = {
atari = [
ale-py
gym
@ -117,6 +124,7 @@ buildPythonPackage rec {
nativeCheckInputs =
[
h5py
gymnasium
imageio
pytest-rerunfailures
@ -125,9 +133,9 @@ buildPythonPackage rec {
scipy
torchvision
]
++ passthru.optional-dependencies.atari
++ passthru.optional-dependencies.gym-continuous
++ passthru.optional-dependencies.rendering;
++ optional-dependencies.atari
++ optional-dependencies.gym-continuous
++ optional-dependencies.rendering;
disabledTests = [
# mujoco.FatalError: an OpenGL platform library has not been loaded into this process, this most likely means that a valid OpenGL context has not been created before mjr_makeContext was called
@ -155,7 +163,7 @@ buildPythonPackage rec {
"test_distributed_collector_updatepolicy"
"test_timeit"
# On a 24
# On a 24 threads system
# assert torch.get_num_threads() == max(1, init_threads - 3)
# AssertionError: assert 23 == 21
"test_auto_num_threads"
@ -168,6 +176,5 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
# ~3k tests fail with: RuntimeError: internal error
broken = stdenv.isLinux && stdenv.isAarch64;
};
}