We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9ec091 + 2c04edb commit a269ce3Copy full SHA for a269ce3
pkgs/development/python-modules/rlcard/default.nix
@@ -34,6 +34,16 @@ buildPythonPackage rec {
34
})
35
];
36
37
+ # AttributeError: 'numpy.ndarray' object has no attribute 'tostring'
38
+ # tobytes() has the exact same behavior as tostring()
39
+ # https://github.com/datamllab/rlcard/pull/328
40
+ postPatch = ''
41
+ substituteInPlace rlcard/agents/cfr_agent.py \
42
+ --replace-fail \
43
+ "state['obs'].tostring()" \
44
+ "state['obs'].tobytes()"
45
+ '';
46
+
47
build-system = [
48
setuptools
49
wheel
0 commit comments