aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2023-08-07 15:16:18 +0000
committerEric Kunze <eric.kunze@arm.com>2023-08-07 15:49:42 +0000
commitbe2e87c45aa3a1d1b235959db9cedba7ab4b52d8 (patch)
tree43516f50df54cf1403ccc6f7ce7871f75098eb45
parentc1d1c639aa10dd6c1c8dce065d6be549768ca4f4 (diff)
downloadreference_model-be2e87c45aa3a1d1b235959db9cedba7ab4b52d8.tar.gz
Update formatting based on clang-format 14
Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I22939e75a08349816a9c103eb7312edcec53855e
-rw-r--r--reference_model/src/ops/tensor_ops.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/reference_model/src/ops/tensor_ops.cc b/reference_model/src/ops/tensor_ops.cc
index 96fd41c..acdeeeb 100644
--- a/reference_model/src/ops/tensor_ops.cc
+++ b/reference_model/src/ops/tensor_ops.cc
@@ -1233,9 +1233,10 @@ int OpDepthwiseConv2d<InDtype, WeightDtype, OutDtype>::eval()
for (int fw = 0; fw < f_width; fw++)
{
// Perform multiplication in AccEigenType then cast to OutEigenType
- this->output->getTensor()(ob, oh, ow, ic * f_multiplier + cm) += (OutEigenType)(
- (AccEigenType)input_extract_patches(ob, fh, fw, ow * out_height + oh, ic) *
- (AccEigenType)weight_val(fh, fw, ic, cm));
+ this->output->getTensor()(ob, oh, ow, ic * f_multiplier + cm) +=
+ (OutEigenType)((AccEigenType)input_extract_patches(ob, fh, fw, ow * out_height + oh,
+ ic) *
+ (AccEigenType)weight_val(fh, fw, ic, cm));
}
}
}