From f9ef0ee8a961e8fecc037dd3f38e5fd5bbc67b99 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Thu, 2 Aug 2018 12:38:08 +0800 Subject: [PATCH] Polish code --- paddle/fluid/framework/operator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/framework/operator.cc b/paddle/fluid/framework/operator.cc index 266b5749c5d..cdac00739bc 100644 --- a/paddle/fluid/framework/operator.cc +++ b/paddle/fluid/framework/operator.cc @@ -59,7 +59,7 @@ static DDim GetDims(const Scope& scope, const std::string& name, if (var->IsType()) { const LoDTensor& tensor = var->Get(); - if (UNLIKELY(tensor.IsInitialized())) { + if (UNLIKELY(!tensor.IsInitialized())) { return DDim({-1}); } return tensor.dims(); -- GitLab