From 46286e72dba81b9a81e7ac8c797b7872e5cd94c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9C=A4=EC=A7=80=EC=98=81/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Wed, 2 Jan 2019 09:08:36 +0900 Subject: [PATCH] [RefNN] Remove commented code (#2748) Remove unnecessary comment for readability. Signed-off-by: Jiyoung Yun --- contrib/ann/runtimes/ref/src/ops/Add.float.cpp | 8 ++++---- contrib/ann/runtimes/ref/src/ops/Mul.float.cpp | 8 ++++---- contrib/ann/runtimes/ref/src/ops/Softmax.float.cpp | 8 ++++---- contrib/ann/runtimes/ref/src/ops/Sub.float.cpp | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/contrib/ann/runtimes/ref/src/ops/Add.float.cpp b/contrib/ann/runtimes/ref/src/ops/Add.float.cpp index c24c258..569cba5 100644 --- a/contrib/ann/runtimes/ref/src/ops/Add.float.cpp +++ b/contrib/ann/runtimes/ref/src/ops/Add.float.cpp @@ -27,10 +27,10 @@ template void Add(const float *input1_data, const Dims<4> &input1_dims, const float *input2_data, const Dims<4> &input2_dims, float *output_data, const Dims<4> &output_dims) { - /* const int batches = */ MatchingArraySize(input1_dims, 3, input2_dims, 3, output_dims, 3); - /* const int height = */ MatchingArraySize(input1_dims, 2, input2_dims, 2, output_dims, 2); - /* const int width = */ MatchingArraySize(input1_dims, 1, input2_dims, 1, output_dims, 1); - /* const int depth = */ MatchingArraySize(input1_dims, 0, input2_dims, 0, output_dims, 0); + MatchingArraySize(input1_dims, 3, input2_dims, 3, output_dims, 3); + MatchingArraySize(input1_dims, 2, input2_dims, 2, output_dims, 2); + MatchingArraySize(input1_dims, 1, input2_dims, 1, output_dims, 1); + MatchingArraySize(input1_dims, 0, input2_dims, 0, output_dims, 0); DCHECK(IsPackedWithoutStrides(input1_dims)); DCHECK(IsPackedWithoutStrides(input2_dims)); DCHECK(IsPackedWithoutStrides(output_dims)); diff --git a/contrib/ann/runtimes/ref/src/ops/Mul.float.cpp b/contrib/ann/runtimes/ref/src/ops/Mul.float.cpp index 768d3d0..294de66 100644 --- a/contrib/ann/runtimes/ref/src/ops/Mul.float.cpp +++ b/contrib/ann/runtimes/ref/src/ops/Mul.float.cpp @@ -27,10 +27,10 @@ template void Mul(const float *input1_data, const Dims<4> &input1_dims, const float *input2_data, const Dims<4> &input2_dims, float *output_data, const Dims<4> &output_dims) { - /* const int batches = */ MatchingArraySize(input1_dims, 3, input2_dims, 3, output_dims, 3); - /* const int height = */ MatchingArraySize(input1_dims, 2, input2_dims, 2, output_dims, 2); - /* const int width = */ MatchingArraySize(input1_dims, 1, input2_dims, 1, output_dims, 1); - /* const int depth = */ MatchingArraySize(input1_dims, 0, input2_dims, 0, output_dims, 0); + MatchingArraySize(input1_dims, 3, input2_dims, 3, output_dims, 3); + MatchingArraySize(input1_dims, 2, input2_dims, 2, output_dims, 2); + MatchingArraySize(input1_dims, 1, input2_dims, 1, output_dims, 1); + MatchingArraySize(input1_dims, 0, input2_dims, 0, output_dims, 0); DCHECK(IsPackedWithoutStrides(input1_dims)); DCHECK(IsPackedWithoutStrides(input2_dims)); DCHECK(IsPackedWithoutStrides(output_dims)); diff --git a/contrib/ann/runtimes/ref/src/ops/Softmax.float.cpp b/contrib/ann/runtimes/ref/src/ops/Softmax.float.cpp index e6c5af4..921fee0 100644 --- a/contrib/ann/runtimes/ref/src/ops/Softmax.float.cpp +++ b/contrib/ann/runtimes/ref/src/ops/Softmax.float.cpp @@ -24,10 +24,10 @@ inline void Softmax(const float *input_data, const Dims<4> &input_dims, float beta, float *output_data, const Dims<4> &output_dims) { - /* const int batches = */ MatchingArraySize(input_dims, 3, output_dims, 3); - /* const int height = */ MatchingArraySize(input_dims, 2, output_dims, 2); - /* const int width = */ MatchingArraySize(input_dims, 1, output_dims, 1); - /* const int depth = */ MatchingArraySize(input_dims, 0, output_dims, 0); + MatchingArraySize(input_dims, 3, output_dims, 3); + MatchingArraySize(input_dims, 2, output_dims, 2); + MatchingArraySize(input_dims, 1, output_dims, 1); + MatchingArraySize(input_dims, 0, output_dims, 0); const auto in_mat = MapAsMatrixWithFirstDimAsRows(input_data, input_dims); auto out_mat = MapAsMatrixWithFirstDimAsRows(output_data, output_dims); diff --git a/contrib/ann/runtimes/ref/src/ops/Sub.float.cpp b/contrib/ann/runtimes/ref/src/ops/Sub.float.cpp index 483acee..3882387 100644 --- a/contrib/ann/runtimes/ref/src/ops/Sub.float.cpp +++ b/contrib/ann/runtimes/ref/src/ops/Sub.float.cpp @@ -27,10 +27,10 @@ template void Sub(const float *input1_data, const Dims<4> &input1_dims, const float *input2_data, const Dims<4> &input2_dims, float *output_data, const Dims<4> &output_dims) { - /* const int batches = */ MatchingArraySize(input1_dims, 3, input2_dims, 3, output_dims, 3); - /* const int height = */ MatchingArraySize(input1_dims, 2, input2_dims, 2, output_dims, 2); - /* const int width = */ MatchingArraySize(input1_dims, 1, input2_dims, 1, output_dims, 1); - /* const int depth = */ MatchingArraySize(input1_dims, 0, input2_dims, 0, output_dims, 0); + MatchingArraySize(input1_dims, 3, input2_dims, 3, output_dims, 3); + MatchingArraySize(input1_dims, 2, input2_dims, 2, output_dims, 2); + MatchingArraySize(input1_dims, 1, input2_dims, 1, output_dims, 1); + MatchingArraySize(input1_dims, 0, input2_dims, 0, output_dims, 0); DCHECK(IsPackedWithoutStrides(input1_dims)); DCHECK(IsPackedWithoutStrides(input2_dims)); DCHECK(IsPackedWithoutStrides(output_dims)); -- 2.7.4