Skip to content

Conversation

@harperj
Copy link
Contributor

@harperj harperj commented Dec 10, 2018

We check for the single brain case in UnityEnvironment by checking
for applicable non-dict types in the step arguments. However for ints
and floats we just use np.int_ and np.float_ for the check, which
are the defaults for your system.

This means if you are using an application (like baselines in #1448)
which uses the wrong int/float size an error will be thrown. This
change explicitly allows both 32 and 64-bit numbers.

@harperj harperj requested a review from xiaomaogy December 10, 2018 23:05
@harperj harperj changed the base branch from develop to release-v0.6 December 13, 2018 22:41
@harperj harperj force-pushed the develop-baselines-fix branch from cef083c to ee81496 Compare December 13, 2018 22:42
We check for the single brain case in UnityEnvironment by checking
for applicable non-dict types in the step arguments. However for ints
and floats we just use `np.int_` and `np.float_` for the check, which
are the defaults for your system.

This means if you are using an application (like baselines in #1448)
which uses the wrong int/float size an error will be thrown.  This
change explicitly allows both 32 and 64-bit numbers.
@harperj harperj force-pushed the develop-baselines-fix branch from ee81496 to 286aed4 Compare December 13, 2018 22:43
@harperj
Copy link
Contributor Author

harperj commented Dec 13, 2018

I rebased this over the release-v0.6 branch and fixed a downstream issue caused by int64 / float64 values in _flatten. I've confirmed that baselines DQN now works on Windows.

@xiaomaogy
Copy link
Contributor

Hi @harperj If you've tested it feel free to merge.

@harperj harperj merged commit 48c3619 into release-v0.6 Dec 14, 2018
@vincentpierre vincentpierre deleted the develop-baselines-fix branch December 14, 2018 21:54
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants