From 5b7afc33330c56bf73fa9d257c371884816ab77c Mon Sep 17 00:00:00 2001 From: Ryan Kuester Date: Wed, 27 Nov 2024 17:29:09 -0600 Subject: [PATCH] fix(py runtime_test): remove test for zero-initialized output tensor Remove the test that incorrectly asserts the output tensor is initially all zeros. The tensor is allocated from a shared memory arena, and its initial state is not guaranteed to be zero. This test eventually failed due to variations in memory allocation during build and runtime; see the failed checks in #2945. BUG=#2636 --- python/tflite_micro/runtime_test.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/python/tflite_micro/runtime_test.py b/python/tflite_micro/runtime_test.py index 2a9003c6b2c..460d934b654 100644 --- a/python/tflite_micro/runtime_test.py +++ b/python/tflite_micro/runtime_test.py @@ -160,11 +160,6 @@ def testOutput(self): model_data = generate_test_models.generate_conv_model(True, self.filename) tflm_interpreter = runtime.Interpreter.from_bytes(model_data) - # Initial output values are all 0 - output = tflm_interpreter.get_output(0) - init_output = np.zeros(self.output_shape) - self.assertAllEqual(output, init_output) - # Test the output tensor details output_details = tflm_interpreter.get_output_details(0) self.assertAllEqual(output_details["shape"], self.output_shape)