Closed imontesino closed 3 years ago
the build is failing due to pytype, you can probably add an exception for it (and check locally that the type check passes)
The pytype error seems to be in record_expert.py
. The code in this PR passes locally as well as in CI (see the line 55 of the typecheck CI)
[39/107] check stable_baselines.common.base_class
The pytype error seems to be in record_expert.py. The code in this PR passes locally as well as in CI (see the line 55 of the typecheck CI)
yes, I know, the error is due to a newer pytype version I assume, so what I was suggesting is ignoring explicitly that error (cf pytype doc, you need to add # pytype: disable=...
The build is failing because of atari-py :see_no_evil: (see https://github.com/openai/atari-py/pull/79)
Could you pin the atari-py version as in https://github.com/DLR-RM/stable-baselines3/pull/448 ? (atari-py==0.2.5
)
Sorry for the CI issues...
Description
Changed the
reuse
parameter when creating the tf variables in the pretrain method totf.AUTO_REUSE
. This prevents tf from trying to create the variables again when pretraining more than once and raising the error:Motivation and Context
Closes #538
Types of changes
Checklist:
pytest
andpytype
both pass (by runningmake pytest
andmake type
).