Merge pull request #8717 from eclipse/sa_gym

RL4J: Use Py_AddPath() instead of Py_SetPath() in GymEnv (issue #8688)
master
Alex Black 2020-03-12 13:17:22 +11:00 committed by GitHub
commit 3d7adcf25a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -297,14 +297,14 @@
<numpy.version>1.18.1</numpy.version> <numpy.version>1.18.1</numpy.version>
<numpy.javacpp.version>${numpy.version}-${javacpp-presets.version}</numpy.javacpp.version> <numpy.javacpp.version>${numpy.version}-${javacpp-presets.version}</numpy.javacpp.version>
<openblas.version>0.3.7</openblas.version> <openblas.version>0.3.9</openblas.version>
<mkl.version>2020.0</mkl.version> <mkl.version>2020.0</mkl.version>
<opencv.version>4.2.0</opencv.version> <opencv.version>4.2.0</opencv.version>
<ffmpeg.version>4.2.2</ffmpeg.version> <ffmpeg.version>4.2.2</ffmpeg.version>
<leptonica.version>1.79.0</leptonica.version> <leptonica.version>1.79.0</leptonica.version>
<hdf5.version>1.10.6</hdf5.version> <hdf5.version>1.12.0</hdf5.version>
<ale.version>0.6.1</ale.version> <ale.version>0.6.1</ale.version>
<gym.version>0.15.5</gym.version> <gym.version>0.17.1</gym.version>
<tensorflow.version>1.15.2</tensorflow.version> <tensorflow.version>1.15.2</tensorflow.version>
<tensorflow.javacpp.version>${tensorflow.version}-${javacpp-presets.version}</tensorflow.javacpp.version> <tensorflow.javacpp.version>${tensorflow.version}-${javacpp-presets.version}</tensorflow.javacpp.version>

View File

@ -62,7 +62,7 @@ public class GymEnv<O, A, AS extends ActionSpace<A>> implements MDP<O, A, AS> {
private static PyObject globals; private static PyObject globals;
static { static {
try { try {
Py_SetPath(org.bytedeco.gym.presets.gym.cachePackages()); Py_AddPath(org.bytedeco.gym.presets.gym.cachePackages());
program = Py_DecodeLocale(GymEnv.class.getSimpleName(), null); program = Py_DecodeLocale(GymEnv.class.getSimpleName(), null);
Py_SetProgramName(program); Py_SetProgramName(program);
Py_Initialize(); Py_Initialize();