From 8c19f0bfe3251ee270546d991e9412ff8dd50100 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Wed, 19 Dec 2018 14:53:33 +0800 Subject: [PATCH] fix test=develop --- paddle/fluid/framework/operator.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paddle/fluid/framework/operator.cc b/paddle/fluid/framework/operator.cc index 4ccef3105c6..2f418f728fb 100644 --- a/paddle/fluid/framework/operator.cc +++ b/paddle/fluid/framework/operator.cc @@ -625,8 +625,7 @@ class RuntimeInferShapeContext : public InferShapeContext { Variable* out_var = out_it->second[j]; PADDLE_ENFORCE(in_var->Type() == out_var->Type(), - "The type of %s and %s is not the same.", in_var->Type(), - out_var->Type()); + "The type of %s and %s is not the same.", in, out); if (in_var->IsType()) { auto& in_sele_rows = in_var->Get(); -- GitLab