未验证 提交 b0c9f24a 编写于 作者: C Chen Weihang 提交者: GitHub

[PHI] Clean glog header in public header (#44216)

* clean glog header in public header

* move marco pos
上级 682acd22
......@@ -24,6 +24,8 @@
#include <functional>
#include <regex>
#include "glog/logging.h"
namespace phi {
void Device::CreateStream(stream::Stream* stream,
......
......@@ -18,6 +18,8 @@
#include <stdexcept>
#include <string>
#include "glog/logging.h"
#if !defined(_WIN32)
#include <dlfcn.h> // dladdr
#include <sys/stat.h>
......
......@@ -17,7 +17,6 @@
#include <string>
#define GLOG_NO_ABBREVIATED_SEVERITIES // msvc conflict logging with windows.h
#include "glog/logging.h"
#if !defined(_WIN32)
#include <dlfcn.h> // dladdr
......
......@@ -14,6 +14,7 @@ limitations under the License. */
#include "paddle/phi/backends/gpu/gpu_info.h"
#include <sstream>
#include <vector>
#include "gflags/gflags.h"
......
......@@ -30,6 +30,7 @@
#include <string>
#include <vector>
#include "glog/logging.h"
#include "paddle/phi/backends/gpu/gpu_context.h"
#include "paddle/phi/core/enforce.h"
......
......@@ -14,6 +14,8 @@ limitations under the License. */
#include "paddle/phi/core/meta_tensor.h"
#include "glog/logging.h"
#include "paddle/phi/core/dense_tensor.h"
#include "paddle/phi/core/enforce.h"
#include "paddle/phi/core/selected_rows.h"
......
......@@ -14,7 +14,6 @@ limitations under the License. */
#pragma once
#include "glog/logging.h"
#include "paddle/phi/common/data_type.h"
#include "paddle/phi/common/layout.h"
#include "paddle/phi/core/ddim.h"
......
......@@ -17,6 +17,8 @@ limitations under the License. */
#include <algorithm>
#include <vector>
#include "glog/logging.h"
#include "paddle/phi/common/data_type.h"
#include "paddle/phi/common/layout.h"
#include "paddle/phi/core/ddim.h"
......
......@@ -14,6 +14,8 @@ limitations under the License. */
#include "paddle/phi/infermeta/ternary.h"
#include "glog/logging.h"
#include "paddle/phi/common/layout.h"
#include "paddle/phi/core/ddim.h"
#include "paddle/phi/kernels/funcs/common_shape.h"
......
......@@ -14,6 +14,8 @@ limitations under the License. */
#pragma once
#include "glog/logging.h"
#include "paddle/phi/common/data_type.h"
#include "paddle/phi/core/dense_tensor.h"
#include "paddle/phi/kernels/cast_kernel.h"
......
......@@ -14,6 +14,8 @@
#include "paddle/phi/kernels/allclose_kernel.h"
#include "glog/logging.h"
#include "paddle/phi/core/enforce.h"
#include "paddle/phi/core/kernel_registry.h"
......
......@@ -15,6 +15,8 @@
#include <set>
#include "glog/logging.h"
#include "paddle/phi/core/dense_tensor.h"
#include "paddle/phi/kernels/matmul_kernel.h"
#include "paddle/phi/kernels/reduce_sum_kernel.h"
......
......@@ -12,6 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#include "glog/logging.h"
#include "paddle/phi/backends/cpu/cpu_context.h"
#include "paddle/phi/core/enforce.h"
#include "paddle/phi/core/kernel_registry.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册