Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"add float64 tests" #10450

Merged
merged 4 commits into from
May 10, 2018
Merged

"add float64 tests" #10450

merged 4 commits into from
May 10, 2018

Conversation

dzhwinter
Copy link
Contributor

add float64 tests

@@ -306,7 +306,7 @@ def run(self,
program = default_main_program()

if not isinstance(program, Program):
raise TypeError()
raise TypeError("executor take Program as arguments.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite understand this message -- should an executor take a Program instance as its argument or not? If the answer is yes, this message should be

An executor requires Program as its parameter, but we passed in ...

If the answer is no, the message should be

An executor doesn't accept Program as its parameter. Please pass in ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out. fixed.

Copy link
Contributor

@sidgoyal78 sidgoyal78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, looks good to me. The main idea is to infer the data type of the learning rate in the optimizer using the data type in loss.

@dzhwinter dzhwinter merged commit 62c51e4 into PaddlePaddle:develop May 10, 2018
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.

None yet

3 participants