From ef087a5d7d9bf67b6fe6c77406a484e84fe03e22 Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Wed, 31 Mar 2021 11:51:03 +0000 Subject: [PATCH] fix shape code format error --- paddle/fluid/pybind/imperative.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/pybind/imperative.cc b/paddle/fluid/pybind/imperative.cc index 2dbceed21cfe2..38ba1dc029303 100644 --- a/paddle/fluid/pybind/imperative.cc +++ b/paddle/fluid/pybind/imperative.cc @@ -1303,8 +1303,8 @@ void BindImperative(py::module *m_ptr) { if (self.Var().IsType()) { return framework::vectorize( self.Var() - .Get() - .dims()); + .Get() + .dims()); } else if (self.Var() .IsType< framework::SelectedRows>()) {