blob: c73433e146a1cf3fe32230494bd382969a26504c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{ lib
, fetchPypi
, buildPythonPackage
, chex
, jaxlib
, tensorflow-probability
, optax
, dm-haiku
, bsuite
, frozendict
, pytestCheckHook
, dm-env
, distrax }:
buildPythonPackage rec {
pname = "rlax";
version = "0.1.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-C3nFOv/zxvAoz6WZ0RAZffzEbxIx/XrGabO4QPxrik8=";
};
buildInputs = [
chex
jaxlib
distrax
tensorflow-probability
];
nativeCheckInputs = [
bsuite
dm-env
dm-haiku
frozendict
optax
pytestCheckHook
];
pythonImportsCheck = [
"rlax"
];
disabledTests = [
# RuntimeErrors
"test_cross_replica_scatter_add0"
"test_cross_replica_scatter_add1"
"test_cross_replica_scatter_add2"
"test_cross_replica_scatter_add3"
"test_cross_replica_scatter_add4"
"test_learn_scale_shift"
"test_normalize_unnormalize_is_identity"
"test_outputs_preserved"
"test_scale_bounded"
"test_slow_update"
"test_unnormalize_linear"
];
meta = with lib; {
description = "Library of reinforcement learning building blocks in JAX";
homepage = "https://github.com/deepmind/rlax";
license = licenses.asl20;
maintainers = with maintainers; [ onny ];
};
}
|