Skip to content

[rllib] Validate that entropy coeff is not an integer#5687

Merged
ericl merged 2 commits intoray-project:masterfrom
kiddyboots216:patch-1
Sep 11, 2019
Merged

[rllib] Validate that entropy coeff is not an integer#5687
ericl merged 2 commits intoray-project:masterfrom
kiddyboots216:patch-1

Conversation

@kiddyboots216
Copy link
Copy Markdown
Contributor

@kiddyboots216 kiddyboots216 commented Sep 11, 2019

Why are these changes needed?

Passing an integer value for entropy coeff such as 0 raises an error somewhere inside the TF policy graph.

This casts int values of entropy coeff to floats.

Related issue number

Closes #5686

Checks

Passing an integer value for entropy coeff such as 0 raises an error somewhere inside the TF policy graph, so this checks to make sure the entropy coeff is a float.
@ericl
Copy link
Copy Markdown
Contributor

ericl commented Sep 11, 2019

Can't we cast to float32 somewhere instead?

Also move this check after the negative value check
@kiddyboots216
Copy link
Copy Markdown
Contributor Author

Makes sense, updated PR description as well

@AmplabJenkins
Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/16970/
Test PASSed.

@AmplabJenkins
Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/16971/
Test FAILed.

@ericl ericl merged commit 946ebfa into ray-project:master Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[rllib] Integer entropy coeff cannot be passed in

3 participants