未验证 提交 297cbeb1 编写于 作者: Q Qiao Longfei 提交者: GitHub

Merge pull request #12439 from jacquesqiao/CheckTensorNANOrInf-support-selectedrows

CheckTensorNANOrInf support checking SelectedRows
......@@ -679,6 +679,8 @@ void OperatorWithKernel::RunImpl(const Scope& scope,
if (var == nullptr) continue;
if (var->IsType<framework::LoDTensor>()) {
CheckTensorNANOrInf(vname, var->Get<framework::LoDTensor>());
} else if (var->IsType<framework::SelectedRows>()) {
CheckTensorNANOrInf(vname, var->Get<framework::SelectedRows>().value());
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册