-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 random crop op #10970
Add random crop op #10970
Conversation
size_t offset_i = offsets[i]; | ||
|
||
if (i == rank - 1) { | ||
PADDLE_ENFORCE(x_stride == 1 && out_stride == 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PADDLE_ENFORCE does not support as a device function. Maybe we should use PADDLE_ASSERT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tools/codestyle/docstring_checker.pyc
should not be commited.
Please use git rebase
to remove it from history.
56419ca
to
7c42e5d
Compare
No description provided.