Skip to content

"add float64 tests"#10450

Merged
dzhwinter merged 4 commits intoPaddlePaddle:developfrom
dzhwinter:float64/tests
May 10, 2018
Merged

"add float64 tests"#10450
dzhwinter merged 4 commits intoPaddlePaddle:developfrom
dzhwinter:float64/tests

Conversation

@dzhwinter
Copy link
Contributor

add float64 tests


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

3 participants