From 6097c3db9a74a55d017e5168465c4e10b5793783 Mon Sep 17 00:00:00 2001 From: Kevin Cheng Date: Thu, 23 Sep 2021 15:25:24 -0700 Subject: Op that violates rank requirement now runs to the end and return ERROR instead of bailing out. Signed-off-by: Kevin Cheng Change-Id: I61e163cfdb54057f65dc967394decc3fad53eb89 --- reference_model/src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'reference_model/src/main.cpp') diff --git a/reference_model/src/main.cpp b/reference_model/src/main.cpp index 55a4848..cfae010 100644 --- a/reference_model/src/main.cpp +++ b/reference_model/src/main.cpp @@ -79,7 +79,11 @@ int main(int argc, const char** argv) if (main_gt.validateGraph()) { - SIMPLE_FATAL_ERROR("Failed to validate graph"); + WARNING("Failed to validate graph. Evaluation aborted."); + ASSERT_MSG(main_gt.getGraphStatus() == GraphStatus::TOSA_ERROR || + main_gt.getGraphStatus() == GraphStatus::TOSA_UNPREDICTABLE, + "Upon validateGraph() returning 1, graph can only be ERROR/UNPREDICTABLE."); + goto done; } if (g_func_config.validate_only) -- cgit v1.2.1