Skip to content

Commit 9f2b818

Browse files
automatiekmmajchrzycki
authored andcommitted
SDK release 21 Feb 2025
1 parent 5573a81 commit 9f2b818

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

CMSIS/DSP/Include/dsp/none.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ But those are not always available or use a restricted set
3333
of intrinsics.
3434
3535
*/
36-
36+
3737
#ifndef _NONE_H_
3838
#define _NONE_H_
3939

@@ -44,7 +44,7 @@ extern "C"
4444
{
4545
#endif
4646

47-
47+
4848

4949
/*
5050
@@ -205,6 +205,7 @@ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
205205
#define mult_32x32_keep32(a, x, y) \
206206
a = (q31_t) (((q63_t) x * y ) >> 32)
207207

208+
// Patched by Edge Impulse, don't redefine these macros on Arm cores
208209
#if !defined (ARM_MATH_DSP) || defined ( _MSC_VER ) || defined(__GNUC_PYTHON__)
209210
/**
210211
* @brief definition to pack two 16 bit values.
@@ -230,6 +231,7 @@ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
230231

231232
return ((uint32_t)((s << 16) | (r )));
232233
}
234+
// Patched by Edge Impulse, don't redefine these macros on Arm cores
233235
#endif
234236

235237
/**
@@ -248,7 +250,7 @@ __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
248250
#endif
249251

250252

251-
253+
252254

253255
// Patched by Edge Impulse, remove `!defined (ARM_MATH_DSP)` check
254256
/*
File renamed without changes.

tensorflow/lite/micro/kernels/conv.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,8 @@ inline void EvalQuantizedPerChannel(
18891889
.width = output_width, .height = output_height,
18901890
.channels = output_depth, .extra = 1
18911891
};
1892-
data_dims_t filter_dims = { .width = filter_width, .height = filter_height,
1892+
data_dims_t filter_dims = {
1893+
.width = filter_width, .height = filter_height,
18931894
.channels = 0, .extra = 0
18941895
};
18951896
conv_params_t conv_params = {

tensorflow/lite/micro/kernels/depthwise_conv.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,8 @@ inline void EvalQuantizedPerChannel(TfLiteContext* context, TfLiteNode* node,
17301730
.width = output_width, .height = output_height,
17311731
.channels = output_depth, .extra = 1
17321732
};
1733-
data_dims_t filter_dims = { .width = filter_width, .height = filter_height,
1733+
data_dims_t filter_dims = {
1734+
.width = filter_width, .height = filter_height,
17341735
.channels = 0, .extra = 0
17351736
};
17361737
dw_conv_params_t conv_params = {
@@ -1843,7 +1844,8 @@ TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) {
18431844
};
18441845
data_dims_t filter_dims = {
18451846
.width = filter_width, .height = filter_height,
1846-
.channels = 0, .extra = 0};
1847+
.channels = 0, .extra = 0
1848+
};
18471849
dw_conv_params_t conv_params = {
18481850
.in_offset = 0, .out_offset = 0,
18491851
.ch_mult = params.depth_multiplier,

0 commit comments

Comments
 (0)