diff --git a/paddle/fluid/inference/tests/api/trt_quant_int8_test.cc b/paddle/fluid/inference/tests/api/trt_quant_int8_test.cc index 6adf3cf743b0e3c303b28c1e4cdc3b4be376bf32..ca25967b59a6a5fbbfaf23f29516f143f1aebe51 100644 --- a/paddle/fluid/inference/tests/api/trt_quant_int8_test.cc +++ b/paddle/fluid/inference/tests/api/trt_quant_int8_test.cc @@ -12,10 +12,10 @@ 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 #include #include #include +#include "gflags/gflags.h" #include "paddle/fluid/inference/tests/api/trt_test_helper.h" diff --git a/paddle/fluid/inference/tests/api/trt_quant_int8_yolov3_r50_test.cc b/paddle/fluid/inference/tests/api/trt_quant_int8_yolov3_r50_test.cc index 4239c138aef2007aaf181c75a83e85ba288fef49..1fa24dddead88a1dcf43109e257e4486992a749b 100644 --- a/paddle/fluid/inference/tests/api/trt_quant_int8_yolov3_r50_test.cc +++ b/paddle/fluid/inference/tests/api/trt_quant_int8_yolov3_r50_test.cc @@ -9,10 +9,10 @@ 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 #include #include #include +#include "gflags/gflags.h" #include "paddle/fluid/inference/tests/api/trt_test_helper.h" diff --git a/paddle/fluid/inference/tests/api/trt_resnet50_test.cc b/paddle/fluid/inference/tests/api/trt_resnet50_test.cc index 9f70a58a0c04451bdc0d4f11a5daa8a865881757..2975967e0c0de839aa2c815e220eef29caef31a4 100644 --- a/paddle/fluid/inference/tests/api/trt_resnet50_test.cc +++ b/paddle/fluid/inference/tests/api/trt_resnet50_test.cc @@ -12,9 +12,9 @@ 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 #include #include +#include "gflags/gflags.h" #include "paddle/fluid/inference/tests/api/trt_test_helper.h" diff --git a/paddle/fluid/inference/tests/api/trt_resnext_test.cc b/paddle/fluid/inference/tests/api/trt_resnext_test.cc index 588b5bffd74e540aa9f3bbdd4f5496c520290aa4..b525a1b706858be015e69af6c90a8f8bf37c947f 100644 --- a/paddle/fluid/inference/tests/api/trt_resnext_test.cc +++ b/paddle/fluid/inference/tests/api/trt_resnext_test.cc @@ -12,9 +12,9 @@ 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 #include #include +#include "gflags/gflags.h" #include "paddle/fluid/inference/tests/api/trt_test_helper.h" diff --git a/paddle/fluid/inference/tests/api/trt_split_converter_test.cc b/paddle/fluid/inference/tests/api/trt_split_converter_test.cc index 7cf50f21948638718690cd976a81f005d18d3720..9ae0527bd971b26789151e87445d36524f7aa1a0 100644 --- a/paddle/fluid/inference/tests/api/trt_split_converter_test.cc +++ b/paddle/fluid/inference/tests/api/trt_split_converter_test.cc @@ -12,9 +12,9 @@ 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 #include #include +#include "gflags/gflags.h" #include "paddle/fluid/inference/tests/api/trt_test_helper.h" diff --git a/paddle/fluid/memory/allocation/allocator_facade.cc b/paddle/fluid/memory/allocation/allocator_facade.cc index 03c252909d92392e50a847d415b6ae5cec689bef..a124a56ef89c57f2537704be5508cf564dbcb959 100644 --- a/paddle/fluid/memory/allocation/allocator_facade.cc +++ b/paddle/fluid/memory/allocation/allocator_facade.cc @@ -14,14 +14,13 @@ #include "paddle/fluid/memory/allocation/allocator_facade.h" -#include - #include #include #include #include #include +#include "gflags/gflags.h" #include "paddle/fluid/memory/allocation/allocator.h" #include "paddle/fluid/memory/allocation/allocator_strategy.h" #include "paddle/fluid/memory/allocation/auto_growth_best_fit_allocator.h" diff --git a/paddle/fluid/memory/allocation/auto_growth_best_fit_allocator_facade_test.cc b/paddle/fluid/memory/allocation/auto_growth_best_fit_allocator_facade_test.cc index 69de02734024f7449191b8fb7f340ce3db9d7542..1dcc820b26debe438cb33c2cae95c315c9a5b272 100644 --- a/paddle/fluid/memory/allocation/auto_growth_best_fit_allocator_facade_test.cc +++ b/paddle/fluid/memory/allocation/auto_growth_best_fit_allocator_facade_test.cc @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include #include #include // NOLINT #include // NOLINT #include // NOLINT #include #include // NOLINT +#include "gflags/gflags.h" #include "paddle/fluid/memory/allocation/allocator_facade.h" #include "paddle/fluid/platform/gpu_info.h" diff --git a/paddle/fluid/operators/distributed/communicator.cc b/paddle/fluid/operators/distributed/communicator.cc index 54dd4208fdb508e6f408b8d5f4ccd00657d4663e..4ee27a6414698fec7a5483195118551afac55f49 100644 --- a/paddle/fluid/operators/distributed/communicator.cc +++ b/paddle/fluid/operators/distributed/communicator.cc @@ -14,7 +14,6 @@ limitations under the License. */ #include "paddle/fluid/operators/distributed/communicator.h" -#include #include #include @@ -23,6 +22,7 @@ limitations under the License. */ #include // NOLINT #include +#include "gflags/gflags.h" #include "paddle/fluid/framework/eigen.h" #include "paddle/fluid/framework/selected_rows.h" #include "paddle/fluid/framework/tensor_util.h" diff --git a/paddle/fluid/operators/distributed/heart_beat_monitor.h b/paddle/fluid/operators/distributed/heart_beat_monitor.h index 5df14c5a51bfb0c73210113778fb69aa8814f89f..d96433c318b3578446ffe484d40711d2559f91ab 100644 --- a/paddle/fluid/operators/distributed/heart_beat_monitor.h +++ b/paddle/fluid/operators/distributed/heart_beat_monitor.h @@ -15,7 +15,6 @@ #pragma once #include -#include #include #include // NOLINT #include @@ -25,6 +24,7 @@ #include #include #include +#include "gflags/gflags.h" #include "paddle/fluid/platform/enforce.h" diff --git a/paddle/fluid/operators/distributed/large_scale_kv.h b/paddle/fluid/operators/distributed/large_scale_kv.h index 52b76b7bfe7d67fc61c52c26bf0763092bfc2e24..da2281231fc8a339fbc2b4cc0fed841bd24e9645 100644 --- a/paddle/fluid/operators/distributed/large_scale_kv.h +++ b/paddle/fluid/operators/distributed/large_scale_kv.h @@ -15,7 +15,6 @@ #pragma once #include -#include #include #include // NOLINT #include @@ -25,6 +24,7 @@ #include #include #include +#include "gflags/gflags.h" #include "paddle/fluid/framework/generator.h" #include "paddle/fluid/framework/lod_tensor.h" diff --git a/paddle/fluid/operators/index_sample_op.h b/paddle/fluid/operators/index_sample_op.h index 6ba197d5c66f25ad2563d3a01ed71f14df9f2175..1e6b4a457ed9362f45f2c4c1c06a997a3938449c 100644 --- a/paddle/fluid/operators/index_sample_op.h +++ b/paddle/fluid/operators/index_sample_op.h @@ -14,13 +14,13 @@ limitations under the License. */ #pragma once -#include #include #include #include #include #include #include +#include "gflags/gflags.h" #include "paddle/fluid/framework/op_registry.h" namespace paddle { diff --git a/paddle/fluid/operators/jit/gen_base.h b/paddle/fluid/operators/jit/gen_base.h index 27b857634155c9b31768c5187f214f72b9a0112d..c22a7f3ec9292cd9ea9f27b4304771d66f466190 100644 --- a/paddle/fluid/operators/jit/gen_base.h +++ b/paddle/fluid/operators/jit/gen_base.h @@ -14,10 +14,10 @@ #pragma once -#include #include // for unique_ptr #include #include +#include "gflags/gflags.h" #include "paddle/fluid/operators/jit/kernel_base.h" diff --git a/paddle/fluid/operators/optimizers/adam_op_xpu.cc b/paddle/fluid/operators/optimizers/adam_op_xpu.cc index 2abc690fc51b26ee1b538a1d9e6b8b0e104fc0f1..1740f2982b6f39b29e4d54e7cffd5fd2081ba99b 100644 --- a/paddle/fluid/operators/optimizers/adam_op_xpu.cc +++ b/paddle/fluid/operators/optimizers/adam_op_xpu.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ #include "paddle/fluid/operators/optimizers/adam_op.h" -#include +#include "gflags/gflags.h" namespace paddle { namespace operators { @@ -74,7 +74,7 @@ class AdamOpXPUKernel : public framework::OpKernel { "output size is 1, but received " "value is:%d.", beta2_pow_out->numel())); - + T beta1 = static_cast(ctx.Attr("beta1")); if (ctx.HasInput("Beta1Tensor")) { auto* beta1_tensor = ctx.Input("Beta1Tensor"); @@ -109,7 +109,7 @@ class AdamOpXPUKernel : public framework::OpKernel { mom2_out.template mutable_data(ctx.GetPlace()), param_out.template mutable_data(ctx.GetPlace()), param.numel()); - //update in cpu and then copy to xpu + // update in cpu and then copy to xpu if (beta1_pow.place() == platform::CPUPlace() && beta2_pow.place() == platform::CPUPlace()) { const T* beta1_pow_p = beta1_pow.template data(); diff --git a/paddle/fluid/operators/tdm_child_op.h b/paddle/fluid/operators/tdm_child_op.h index 8640478cf4f62711e9aa190e4fd44bda52e78dc5..3549fc6c45e8d5cdce652cf5ee8a65c752935304 100644 --- a/paddle/fluid/operators/tdm_child_op.h +++ b/paddle/fluid/operators/tdm_child_op.h @@ -14,13 +14,13 @@ #pragma once -#include #include #include #include #include #include #include +#include "gflags/gflags.h" #include "paddle/fluid/framework/mixed_vector.h" #include "paddle/fluid/framework/op_registry.h" diff --git a/paddle/fluid/operators/tdm_sampler_op.h b/paddle/fluid/operators/tdm_sampler_op.h index d172016415be6b4cd7dbf0a137158a2e62989509..b740f34b0a34618674b112688d1b344dbe0e178a 100644 --- a/paddle/fluid/operators/tdm_sampler_op.h +++ b/paddle/fluid/operators/tdm_sampler_op.h @@ -14,13 +14,13 @@ #pragma once -#include #include #include #include #include #include #include +#include "gflags/gflags.h" #include "paddle/fluid/framework/mixed_vector.h" #include "paddle/fluid/framework/op_registry.h" #include "paddle/fluid/operators/math/sampler.h"