Skip to content

Commit 4186e7d

Browse files
authored
Reenable recording_micro_allocator_test (#3207)
* Reenable tests * Added alignas to kTestConvModelData
1 parent 7ba714a commit 4186e7d

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

tensorflow/lite/micro/recording_micro_allocator_test.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,6 @@ TF_LITE_MICRO_TEST(TestRecordsMultiTenantAllocations) {
157157
tensors_count * TF_LITE_EVAL_TENSOR_STRUCT_SIZE * 2);
158158
}
159159

160-
// TODO(veblush): Reenable this
161-
// Currently those two tests are failing with
162-
// "qemu: uncaught target signal 7 (Bus error) - core dumped"
163-
#if 0
164160
TF_LITE_MICRO_TEST(TestRecordsPersistentTfLiteTensorData) {
165161
const tflite::Model* model = tflite::GetModel(kTestConvModelData);
166162
uint8_t arena[kTestConvArenaSize];
@@ -231,7 +227,6 @@ TF_LITE_MICRO_TEST(TestRecordsPersistentTfLiteTensorQuantizationData) {
231227
TF_LITE_MICRO_EXPECT_GE(recorded_allocation.used_bytes,
232228
expected_requested_bytes);
233229
}
234-
#endif
235230

236231
TF_LITE_MICRO_TEST(TestRecordsPersistentBufferData) {
237232
uint8_t arena[kTestConvArenaSize];

tensorflow/lite/micro/testing/test_conv_model.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515

1616
#include "tensorflow/lite/micro/testing/test_conv_model.h"
1717

18-
extern const unsigned char kTestConvModelData[] = {
18+
alignas(16) const unsigned char kTestConvModelData[] = {
1919
0x24, 0x00, 0x00, 0x00, 0x54, 0x46, 0x4c, 0x33, 0x00, 0x00, 0x00, 0x00,
2020
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x1c, 0x00, 0x04, 0x00,
2121
0x08, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x14, 0x00, 0x00, 0x00, 0x18, 0x00,

0 commit comments

Comments
 (0)