From 26fcb35d5cee39954388574e3b0d05a56a7ec5fa Mon Sep 17 00:00:00 2001 From: liuqi Date: Thu, 22 Mar 2018 14:14:59 +0800 Subject: [PATCH] Code format. --- mace/kernels/proposal.h | 1 - mace/kernels/psroi_align.h | 9 ++++++--- mace/ops/proposal_test.cc | 2 -- mace/ops/psroi_align.h | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mace/kernels/proposal.h b/mace/kernels/proposal.h index 897e1915..d3afe966 100644 --- a/mace/kernels/proposal.h +++ b/mace/kernels/proposal.h @@ -195,7 +195,6 @@ struct ProposalFunctor { proposals[sanc_idx][3] = std::max( std::min(pred_ctr_y + pred_h / 2, im_height), 0); - } } } diff --git a/mace/kernels/psroi_align.h b/mace/kernels/psroi_align.h index 9d6f4311..57e19c3c 100644 --- a/mace/kernels/psroi_align.h +++ b/mace/kernels/psroi_align.h @@ -5,6 +5,9 @@ #ifndef MACE_KERNELS_PSROI_ALIGN_H_ #define MACE_KERNELS_PSROI_ALIGN_H_ +#include +#include + #include "mace/core/future.h" #include "mace/core/tensor.h" #include "mace/public/mace.h" @@ -169,7 +172,7 @@ struct PSROIAlignFunctor { const int group_size_; }; -} // namepsace kernels -} // namespace mace +} // namespace kernels +} // namespace mace -#endif // MACE_KERNELS_PSROI_ALIGN_H_ +#endif // MACE_KERNELS_PSROI_ALIGN_H_ diff --git a/mace/ops/proposal_test.cc b/mace/ops/proposal_test.cc index 11eb7a49..94203deb 100644 --- a/mace/ops/proposal_test.cc +++ b/mace/ops/proposal_test.cc @@ -4,7 +4,6 @@ #include "mace/core/operator.h" #include "mace/ops/ops_test_util.h" -#include namespace mace { namespace ops { @@ -54,7 +53,6 @@ TEST_F(ProposalOpTest, CPUSimple) { auto expected_tensor = CreateTensor({1, 1, 1, 5}, {0, 0, 0, 255, 255}); ExpectTensorNear(*expected_tensor, *net.GetTensor("Output"), 1e-5); - } diff --git a/mace/ops/psroi_align.h b/mace/ops/psroi_align.h index c8167420..e134b4a4 100644 --- a/mace/ops/psroi_align.h +++ b/mace/ops/psroi_align.h @@ -38,7 +38,7 @@ class PSROIAlignOp : public Operator { OP_OUTPUT_TAGS(OUTPUT); }; -} // namespace ops -} // namespace mace +} // namespace ops +} // namespace mace -#endif // MACE_OPS_PSROI_ALIGN_H_ +#endif // MACE_OPS_PSROI_ALIGN_H_ -- GitLab