Merge pull request #15037 from jianhang-liu/fix/abnormal_stack_op_time

Fix/abnormal stack op time
revert-15207-remove_op_handle_lock_and_fix_var
Tao Luo 6 years ago committed by GitHub
commit 69659f4ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1098,8 +1098,8 @@ proto::VarType::Type OperatorWithKernel::IndicateDataType(
t = &(var->Get<SelectedRows>().value());
}
if (t != nullptr) {
PADDLE_ENFORCE(t->IsInitialized(), "Input %s is not initialized: %s",
ipt_name, DebugString());
PADDLE_ENFORCE(t->IsInitialized(), "Input %s is not initialized",
ipt_name);
int tmp = static_cast<int>(t->type());
PADDLE_ENFORCE(
tmp == data_type || data_type == -1,

Loading…
Cancel
Save