-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
polish high frequency enforce error message #12591
Conversation
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.
Enforce does not always mean Data check
paddle/fluid/platform/enforce.h
Outdated
PADDLE_THROW("enforce %s " #__CMP " %s failed, %s " #__INV_CMP \ | ||
" %s\n%s", \ | ||
#__VAL0, #__VAL1, paddle::string::to_string(__VAL0), \ | ||
PADDLE_THROW("Data check failed. Expected %s " #__CMP \ |
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.
Data check failed.
--> Enforce failed.
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.
Done, thanks
paddle/fluid/platform/gpu_info.cc
Outdated
|
||
GpuMemoryUsage(&available, &total); |
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.
The older version is better than the new version. Since this function is GpuMaxChunkSize, using available_memory
is wordiness.
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.
Done, thanks
paddle/fluid/platform/gpu_info.cc
Outdated
|
||
PADDLE_ENFORCE_LE(allocating, available); |
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.
You can write an extra message here if you think PADDLE_ENFORCE_LE is not good.
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.
Done, thanks
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.
Data check failed. --> Enforce failed
polish high frequency enforce error message
To resolve problems:
after changing:
after changing: