@@ -219,25 +219,29 @@ TF_LITE_MICRO_TEST(TestSetDecompressionMemory) {
219219 // fail during Prepare state
220220 micro_context.SetInterpreterState (
221221 tflite::MicroInterpreterContext::InterpreterState::kPrepare );
222- status = micro_context.SetDecompressionMemory (alt_memory_region);
222+ status = micro_context.SetDecompressionMemory (alt_memory_region.begin (),
223+ alt_memory_region.size ());
223224 TF_LITE_MICRO_EXPECT (status == kTfLiteError );
224225
225226 // fail during Invoke state
226227 micro_context.SetInterpreterState (
227228 tflite::MicroInterpreterContext::InterpreterState::kInvoke );
228- status = micro_context.SetDecompressionMemory (alt_memory_region);
229+ status = micro_context.SetDecompressionMemory (alt_memory_region.begin (),
230+ alt_memory_region.size ());
229231 TF_LITE_MICRO_EXPECT (status == kTfLiteError );
230232
231233 // succeed during Init state
232234 micro_context.SetInterpreterState (
233235 tflite::MicroInterpreterContext::InterpreterState::kInit );
234- status = micro_context.SetDecompressionMemory (alt_memory_region);
236+ status = micro_context.SetDecompressionMemory (alt_memory_region.begin (),
237+ alt_memory_region.size ());
235238 TF_LITE_MICRO_EXPECT (status == kTfLiteOk );
236239
237240 // fail on second Init state attempt
238241 micro_context.SetInterpreterState (
239242 tflite::MicroInterpreterContext::InterpreterState::kInit );
240- status = micro_context.SetDecompressionMemory (alt_memory_region);
243+ status = micro_context.SetDecompressionMemory (alt_memory_region.begin (),
244+ alt_memory_region.size ());
241245 TF_LITE_MICRO_EXPECT (status == kTfLiteError );
242246}
243247
@@ -253,7 +257,8 @@ TF_LITE_MICRO_TEST(TestAllocateDecompressionMemory) {
253257
254258 micro_context.SetInterpreterState (
255259 tflite::MicroInterpreterContext::InterpreterState::kInit );
256- TfLiteStatus status = micro_context.SetDecompressionMemory (alt_memory_region);
260+ TfLiteStatus status = micro_context.SetDecompressionMemory (
261+ alt_memory_region.begin (), alt_memory_region.size ());
257262 TF_LITE_MICRO_EXPECT (status == kTfLiteOk );
258263
259264 micro_context.SetInterpreterState (
@@ -287,7 +292,8 @@ TF_LITE_MICRO_TEST(TestResetDecompressionMemory) {
287292
288293 micro_context.SetInterpreterState (
289294 tflite::MicroInterpreterContext::InterpreterState::kInit );
290- TfLiteStatus status = micro_context.SetDecompressionMemory (alt_memory_region);
295+ TfLiteStatus status = micro_context.SetDecompressionMemory (
296+ alt_memory_region.begin (), alt_memory_region.size ());
291297 TF_LITE_MICRO_EXPECT (status == kTfLiteOk );
292298
293299 micro_context.SetInterpreterState (
0 commit comments