diff --git a/paddle/operators/math/math_function.cc b/paddle/operators/math/math_function.cc index ed49a0a549130a839fbd875db84111c57520cfed..ddb904aa469d25589d9518a2bb38242aefd34470 100644 --- a/paddle/operators/math/math_function.cc +++ b/paddle/operators/math/math_function.cc @@ -134,17 +134,6 @@ void matmul( template struct SetConstant; -namespace detail { -size_t FindPos(const std::vector& rows, int64_t value) { - for (size_t i = 0; i < rows.size(); i++) { - if (rows[i] == value) { - return i; - } - } - return 0; -} -} // namespace detail - template struct SelectedRowsAdd { void operator()(const platform::DeviceContext& context, diff --git a/paddle/operators/math/math_function_test.cc b/paddle/operators/math/math_function_test.cc index e3186171d19f0fdc2d894bb7b2aff722777bd2b4..fe0d1981fa3daf9726391208b7f43d47e0f10b46 100644 --- a/paddle/operators/math/math_function_test.cc +++ b/paddle/operators/math/math_function_test.cc @@ -1,5 +1,4 @@ #include "paddle/operators/math/math_function.h" -#include "glog/logging.h" #include "gtest/gtest.h" #ifdef PADDLE_WITH_CUDA