From 69bb7f207980c6375512a9a9285f350208e66346 Mon Sep 17 00:00:00 2001 From: Michiel Olieslagers Date: Wed, 8 Oct 2025 10:37:19 +0100 Subject: [PATCH] Updated how generic evaluator is handled Currently using the generic evaluator leads to a dataset of "None" being used. This patch reverts the dataset to being defaulted to example inputs for the generic evaluator. Change-Id: I7bdb3161d6339eadc50a1d3a73d592119fa87587 --- examples/arm/aot_arm_compiler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/arm/aot_arm_compiler.py b/examples/arm/aot_arm_compiler.py index f3de38c20da..cf924971327 100644 --- a/examples/arm/aot_arm_compiler.py +++ b/examples/arm/aot_arm_compiler.py @@ -285,7 +285,9 @@ def get_calibration_data( ): # Firstly, if the model is being evaluated, take the evaluators calibration function if it has one if evaluator_name is not None: - return evaluator_calibration_data(evaluator_name, evaluator_config) + evaluator_data = evaluator_calibration_data(evaluator_name, evaluator_config) + if evaluator_data is not None: + return evaluator_data # If the model is in the calibration_data dictionary, get the data from there # This is used for the simple model examples provided