From 3033841b4ae97ed62934d46391323de7c8dc3f78 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Mon, 30 Jul 2018 12:47:53 +0800 Subject: [PATCH] CheckTensorNANOrInf support checking SelectedRows --- paddle/fluid/framework/operator.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paddle/fluid/framework/operator.cc b/paddle/fluid/framework/operator.cc index d1dc5fcd9..7c1c29fd9 100644 --- a/paddle/fluid/framework/operator.cc +++ b/paddle/fluid/framework/operator.cc @@ -679,6 +679,8 @@ void OperatorWithKernel::RunImpl(const Scope& scope, if (var == nullptr) continue; if (var->IsType()) { CheckTensorNANOrInf(vname, var->Get()); + } else if (var->IsType()) { + CheckTensorNANOrInf(vname, var->Get().value()); } } } -- GitLab