Skip to content

Commit cf9899f

Browse files
committed
clang-format some existing files
1 parent ba753ce commit cf9899f

File tree

15 files changed

+368
-203
lines changed

15 files changed

+368
-203
lines changed

signal/micro/kernels/stacker_test.cc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ class StackerKernelRunner {
3232
StackerKernelRunner(int* input_dims_data, const int16_t* input_data,
3333
int* output_dims_data, int16_t* output_data,
3434
int* output_ready_dims_data, bool* ouput_ready_data)
35-
: tensors_{testing::CreateTensor(
36-
input_data,
37-
tflite::testing::IntArrayFromInts(input_dims_data)),
38-
testing::CreateTensor(
39-
output_data,
40-
tflite::testing::IntArrayFromInts(output_dims_data)),
41-
testing::CreateTensor(
42-
ouput_ready_data,
43-
testing::IntArrayFromInts(output_ready_dims_data))},
35+
: tensors_{
36+
testing::CreateTensor(
37+
input_data, tflite::testing::IntArrayFromInts(input_dims_data)),
38+
testing::CreateTensor(
39+
output_data,
40+
tflite::testing::IntArrayFromInts(output_dims_data)),
41+
testing::CreateTensor(
42+
ouput_ready_data,
43+
testing::IntArrayFromInts(output_ready_dims_data))},
4444
inputs_array_{testing::IntArrayFromInts(inputs_array_data_)},
4545
outputs_array_{testing::IntArrayFromInts(outputs_array_data_)},
4646
kernel_runner_{*registration_, tensors_, kTensorsSize,

tensorflow/compiler/mlir/lite/schema/schema_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ namespace tflite {
2424
// problem. The new builtin operator will be assigned to the extended builtin
2525
// code field in the flatbuffer schema. Those methods helps to hide builtin code
2626
// details.
27-
BuiltinOperator GetBuiltinCode(const OperatorCode *op_code);
27+
BuiltinOperator GetBuiltinCode(const OperatorCode* op_code);
2828

29-
BuiltinOperator GetBuiltinCode(const OperatorCodeT *op_code);
29+
BuiltinOperator GetBuiltinCode(const OperatorCodeT* op_code);
3030

3131
} // namespace tflite
3232

tensorflow/lite/experimental/microfrontend/lib/filterbank_test.cc

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckChannelFrequencyStarts) {
7676
kSampleRate, kSpectrumSize));
7777

7878
const int16_t expected[] = {0, 4, 8};
79-
TF_LITE_MICRO_EXPECT_EQ(state.num_channels + 1,
80-
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
79+
TF_LITE_MICRO_EXPECT_EQ(
80+
state.num_channels + 1,
81+
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
8182
int i;
8283
for (i = 0; i <= state.num_channels; ++i) {
8384
TF_LITE_MICRO_EXPECT_EQ(state.channel_frequency_starts[i], expected[i]);
@@ -93,8 +94,9 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckChannelWeightStarts) {
9394
kSampleRate, kSpectrumSize));
9495

9596
const int16_t expected[] = {0, 8, 16};
96-
TF_LITE_MICRO_EXPECT_EQ(state.num_channels + 1,
97-
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
97+
TF_LITE_MICRO_EXPECT_EQ(
98+
state.num_channels + 1,
99+
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
98100
int i;
99101
for (i = 0; i <= state.num_channels; ++i) {
100102
TF_LITE_MICRO_EXPECT_EQ(state.channel_weight_starts[i], expected[i]);
@@ -110,8 +112,9 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckChannelWidths) {
110112
kSampleRate, kSpectrumSize));
111113

112114
const int16_t expected[] = {8, 8, 8};
113-
TF_LITE_MICRO_EXPECT_EQ(state.num_channels + 1,
114-
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
115+
TF_LITE_MICRO_EXPECT_EQ(
116+
state.num_channels + 1,
117+
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
115118
int i;
116119
for (i = 0; i <= state.num_channels; ++i) {
117120
TF_LITE_MICRO_EXPECT_EQ(state.channel_widths[i], expected[i]);
@@ -129,9 +132,10 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckWeights) {
129132
const int16_t expected[] = {0, 3277, 2217, 1200, 222, 0, 0, 0,
130133
0, 3376, 2468, 1591, 744, 0, 0, 0,
131134
0, 4020, 3226, 2456, 1708, 983, 277, 0};
132-
TF_LITE_MICRO_EXPECT_EQ(state.channel_weight_starts[state.num_channels] +
133-
state.channel_widths[state.num_channels],
134-
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
135+
TF_LITE_MICRO_EXPECT_EQ(
136+
state.channel_weight_starts[state.num_channels] +
137+
state.channel_widths[state.num_channels],
138+
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
135139
for (size_t i = 0; i < sizeof(expected) / sizeof(expected[0]); ++i) {
136140
TF_LITE_MICRO_EXPECT_EQ(state.weights[i], expected[i]);
137141
}
@@ -148,9 +152,10 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckUnweights) {
148152
const int16_t expected[] = {0, 819, 1879, 2896, 3874, 0, 0, 0,
149153
0, 720, 1628, 2505, 3352, 0, 0, 0,
150154
0, 76, 870, 1640, 2388, 3113, 3819, 0};
151-
TF_LITE_MICRO_EXPECT_EQ(state.channel_weight_starts[state.num_channels] +
152-
state.channel_widths[state.num_channels],
153-
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
155+
TF_LITE_MICRO_EXPECT_EQ(
156+
state.channel_weight_starts[state.num_channels] +
157+
state.channel_widths[state.num_channels],
158+
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
154159
for (size_t i = 0; i < sizeof(expected) / sizeof(expected[0]); ++i) {
155160
TF_LITE_MICRO_EXPECT_EQ(state.unweights[i], expected[i]);
156161
}
@@ -204,8 +209,9 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckSqrt) {
204209
uint32_t* scaled_filterbank = FilterbankSqrt(&state, kScaleShift);
205210

206211
const uint32_t expected[] = {247311, 508620};
207-
TF_LITE_MICRO_EXPECT_EQ(state.num_channels,
208-
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
212+
TF_LITE_MICRO_EXPECT_EQ(
213+
state.num_channels,
214+
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
209215
int i;
210216
for (i = 0; i < state.num_channels; ++i) {
211217
TF_LITE_MICRO_EXPECT_EQ(scaled_filterbank[i], expected[i]);

tensorflow/lite/experimental/microfrontend/lib/noise_reduction_test.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ TF_LITE_MICRO_TEST(NoiseReductionTest_TestNoiseReductionEstimate) {
4848
NoiseReductionApply(&state, signal);
4949

5050
const uint32_t expected[] = {6321887, 31248341};
51-
TF_LITE_MICRO_EXPECT_EQ(state.num_channels,
52-
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
51+
TF_LITE_MICRO_EXPECT_EQ(
52+
state.num_channels,
53+
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
5354
int i;
5455
for (i = 0; i < state.num_channels; ++i) {
5556
TF_LITE_MICRO_EXPECT_EQ(state.estimate[i], expected[i]);
@@ -68,8 +69,9 @@ TF_LITE_MICRO_TEST(NoiseReductionTest_TestNoiseReduction) {
6869
NoiseReductionApply(&state, signal);
6970

7071
const uint32_t expected[] = {241137, 478104};
71-
TF_LITE_MICRO_EXPECT_EQ(state.num_channels,
72-
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
72+
TF_LITE_MICRO_EXPECT_EQ(
73+
state.num_channels,
74+
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
7375
int i;
7476
for (i = 0; i < state.num_channels; ++i) {
7577
TF_LITE_MICRO_EXPECT_EQ(signal[i], expected[i]);

tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_test.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ TF_LITE_MICRO_TEST(PcanGainControlTest_TestPcanGainControl) {
5252
PcanGainControlApply(&state, signal);
5353

5454
const uint32_t expected[] = {3578, 1533};
55-
TF_LITE_MICRO_EXPECT_EQ(state.num_channels,
56-
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
55+
TF_LITE_MICRO_EXPECT_EQ(
56+
state.num_channels,
57+
static_cast<int>(sizeof(expected) / sizeof(expected[0])));
5758
int i;
5859
for (i = 0; i < state.num_channels; ++i) {
5960
TF_LITE_MICRO_EXPECT_EQ(signal[i], expected[i]);

tensorflow/lite/kernels/internal/reference/integer_ops/conv.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ inline void ConvPerChannel(
135135
}
136136
}
137137

138-
139138
// Fixed-point per-channel-quantization convolution reference kernel.
140139
// 16-bit data and 8-bit filter
141140
template <typename AccumScalar>

0 commit comments

Comments
 (0)