From 903763c07f1c8a77783735b05a6a9d722bee1639 Mon Sep 17 00:00:00 2001 From: Kevin Cheng Date: Tue, 28 Sep 2021 16:14:52 -0700 Subject: Add SUBGRAPH_ERROR_IF() to catch graph-level error. - Also replace SIMPLE_FATAL_ERROR() with FATAL_ERROR() since they're duplicate - Replace FATAL_ERROR()/ASSERT_MSG() with ERROR_IF_SUBGRAPH() if the condition is a graph error FATAL_ERROR()/ASSERT() should only be used by model internal/runtime error like file reading. Signed-off-by: Kevin Cheng Change-Id: If1e1e2488054a0ecd800fb0f2ea6487019282500 --- reference_model/src/ops/custom.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'reference_model/src/ops/custom.cc') diff --git a/reference_model/src/ops/custom.cc b/reference_model/src/ops/custom.cc index 5fc36f3..cbc5742 100644 --- a/reference_model/src/ops/custom.cc +++ b/reference_model/src/ops/custom.cc @@ -33,7 +33,7 @@ int OpCustom::checkTensorAttributes() int OpCustom::eval() { - FATAL_ERROR("not supported yet"); + ERROR_IF(true, "not supported yet"); // Evaluation is trivial for constants return GraphNode::eval(); -- cgit v1.2.1