|
|
@ -84,7 +84,9 @@ class ProtoEncodeHelper {
|
|
|
|
~ProtoEncodeHelper() {
|
|
|
|
~ProtoEncodeHelper() {
|
|
|
|
#define REPLACE_ENFORCE_GLOG 1
|
|
|
|
#define REPLACE_ENFORCE_GLOG 1
|
|
|
|
// Make sure callers didn't do operations that went over max_size promised
|
|
|
|
// Make sure callers didn't do operations that went over max_size promised
|
|
|
|
paddle::platform::throw_on_error(p_ <= limit_);
|
|
|
|
if (paddle::platform::is_error(p_ <= limit_)) {
|
|
|
|
|
|
|
|
paddle::platform::throw_on_error(p_ <= limit_);
|
|
|
|
|
|
|
|
}
|
|
|
|
#undef REPLACE_ENFORCE_GLOG
|
|
|
|
#undef REPLACE_ENFORCE_GLOG
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|