From d25f382d0b8c095008e1f5694e7aaf6f7fa7c075 Mon Sep 17 00:00:00 2001 From: Yang Yu Date: Fri, 29 Dec 2017 14:52:40 +0800 Subject: [PATCH] Remove debug codes --- paddle/framework/executor.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paddle/framework/executor.cc b/paddle/framework/executor.cc index d465f8888..bf1f0471c 100644 --- a/paddle/framework/executor.cc +++ b/paddle/framework/executor.cc @@ -67,8 +67,7 @@ static void CheckTensorNANOrInf(const std::string& name, return; } PADDLE_ENFORCE(!framework::HasInf(tensor), "Tensor %s has Inf", name); - PADDLE_ENFORCE(!framework::HasNAN(tensor), "Tensor %s has NAN, %p", name, - &tensor); + PADDLE_ENFORCE(!framework::HasNAN(tensor), "Tensor %s has NAN", name); } void Executor::Run(const ProgramDesc& pdesc, Scope* scope, int block_id, -- GitLab