aboutsummaryrefslogtreecommitdiff
path: root/reference_model/src/operators.cc
diff options
context:
space:
mode:
authorJiacheng Liang <jiacheng.liang@arm.com>2023-05-17 16:49:44 +0100
committerEric Kunze <eric.kunze@arm.com>2023-06-02 21:29:19 +0000
commiteb52cc18b342d6329322f84b671eab4450e663fd (patch)
treec6bc5b6fbd064b7fe0a7ae0c0c2be4d9939bd813 /reference_model/src/operators.cc
parent56a3a06c260714703cb531bac3417ed37aebe6ce (diff)
downloadreference_model-eb52cc18b342d6329322f84b671eab4450e663fd.tar.gz
Add support for boolean outputs in model runner
Comparison operators produce boolean outputs, which need to be written into client data Allow subgraph traverser to use main block to look for tensors when serialization handler is missing Signed-off-by: Jiacheng Liang <jiacheng.liang@arm.com> Change-Id: I6f9af470185541fa6466b3f7786c48f1555fa6f6
Diffstat (limited to 'reference_model/src/operators.cc')
-rw-r--r--reference_model/src/operators.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/reference_model/src/operators.cc b/reference_model/src/operators.cc
index a627322..a070326 100644
--- a/reference_model/src/operators.cc
+++ b/reference_model/src/operators.cc
@@ -50,6 +50,8 @@ tosa::DType translate_client_datatype(tosa_datatype_t type)
return tosa::DType::DType_FP16;
case tosa_datatype_fp32_t:
return tosa::DType::DType_FP32;
+ case tosa_datatype_bool_t:
+ return tosa::DType::DType_BOOL;
default:
return tosa::DType::DType_UNKNOWN;
}