From 586bafbd9336bbea29a129027961f6250fb10609 Mon Sep 17 00:00:00 2001 From: Zhanlue Yang Date: Tue, 23 Nov 2021 15:52:14 +0800 Subject: [PATCH] Removed debug code (#37447) --- paddle/fluid/pybind/imperative.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/paddle/fluid/pybind/imperative.cc b/paddle/fluid/pybind/imperative.cc index 997e78e7c07..85a9507050f 100644 --- a/paddle/fluid/pybind/imperative.cc +++ b/paddle/fluid/pybind/imperative.cc @@ -1628,15 +1628,10 @@ void BindImperative(py::module *m_ptr) { "stop " "gradient or without gradient.")); auto py_func = PyObjectCast>(hook.ptr()); - VLOG(1) << 111; auto grad_node = self.MutableGradVarBase()->GradNode(); - VLOG(1) << 222; - VLOG(1) << (grad_node == nullptr); for (auto &cur_op : *grad_node) { - VLOG(1) << 333; cur_op.AddVoidFunctionPostHook( std::make_shared>(py_func)); - VLOG(1) << 444; } }) .def("_register_backward_hook", -- GitLab