From 8c25c30aca6c44e056d817ea6fb2c68dc3d5b141 Mon Sep 17 00:00:00 2001 From: Yue Li <yue.li@bytedance.com> Date: Tue, 30 Aug 2022 13:06:02 -0700 Subject: [PATCH] minor formatting in NNInference.h --- source/Lib/CommonLib/NNInference.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/Lib/CommonLib/NNInference.h b/source/Lib/CommonLib/NNInference.h index 3c32c40dd6..9c33262314 100644 --- a/source/Lib/CommonLib/NNInference.h +++ b/source/Lib/CommonLib/NNInference.h @@ -87,7 +87,7 @@ public: hor = inferArea.lwidth() >> 1; ver = inferArea.lheight() >> 1; } - #if NN_FIXED_POINT_IMPLEMENTATION +#if NN_FIXED_POINT_IMPLEMENTATION for (int yy = 0; yy < ver; yy++) { for (int xx = 0; xx < hor; xx++) @@ -109,7 +109,7 @@ public: } } } - #else +#else for (int yy = 0; yy < ver; yy++) { for (int xx = 0; xx < hor; xx++) @@ -131,7 +131,7 @@ public: } } } - #endif +#endif } template<typename T> static void fillInputFromConstant (Picture* pic, UnitArea inferArea, sadl::Tensor<T> &input, int c, bool luma, double scale, int shift) @@ -147,7 +147,7 @@ public: hor = inferArea.lwidth() >> 1; ver = inferArea.lheight() >> 1; } - #if NN_FIXED_POINT_IMPLEMENTATION +#if NN_FIXED_POINT_IMPLEMENTATION for (int yy = 0; yy < ver; yy++) { for (int xx = 0; xx < hor; xx++) @@ -155,7 +155,7 @@ public: input(0, yy, xx, 0) = c << shift; } } - #else +#else for (int yy = 0; yy < ver; yy++) { for (int xx = 0; xx < hor; xx++) @@ -163,7 +163,7 @@ public: input(0, yy, xx, 0) = c / scale; } } - #endif +#endif } template<typename T> static void prepareInputs (Picture* pic, UnitArea inferArea, vector<sadl::Tensor<T>> &inputs, int globalQp, int localQp, int sliceType, const std::vector<InputData> &listInputData) -- GitLab