Skip to content

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented Aug 9, 2017

  • Give which parameter, which element are wrong. And what max_diff is.

* Give which parameter, which element are wrong. And what max_diff is.
@reyoung reyoung requested a review from jacquesqiao August 9, 2017 09:52
raise ValueError("unknown place " + type(place))
self.assertTrue(
self.__is_close(numeric_grad, scope, max_relative_error), msg)
self.__is_close(numeric_grad, scope, max_relative_error,
Copy link
Member

Choose a reason for hiding this comment

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

要不改成 self.AssertIsClose ?
这个函数实际上干了Assert的事儿,而不是判断是不是 close

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

@jacquesqiao jacquesqiao left a comment

Choose a reason for hiding this comment

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

LGTM! except for a suggestion of the function name __is_close

@reyoung reyoung merged commit 1ea91ca into PaddlePaddle:develop Aug 9, 2017
@reyoung reyoung deleted the feature/change_gradient_check_fit_python_style branch October 2, 2017 18:17
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.

2 participants