From a4d748b08accce06fab93e2d2b96e499b35ae89b Mon Sep 17 00:00:00 2001 From: Tai Ly Date: Tue, 28 Mar 2023 22:06:56 +0000 Subject: [reference model] Add precise mode This adds --precise_mode=1 option to tosa_referece_model, which will cause reference model to convert all floating point tensors to FP64 tensors and compute all operators accordingly. Also adds optional -p arguments to test runners tosa_verif_run_tests.py and tosa_verif_framework_compiler_runner.py to run tests in precise mode Signed-off-by: Tai Ly Change-Id: I156055216ad61710096497a8fa1a653be2a602a3 --- reference_model/src/ops/ewise_ternary.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'reference_model/src/ops/ewise_ternary.h') diff --git a/reference_model/src/ops/ewise_ternary.h b/reference_model/src/ops/ewise_ternary.h index 75a2194..c6970cb 100644 --- a/reference_model/src/ops/ewise_ternary.h +++ b/reference_model/src/ops/ewise_ternary.h @@ -1,5 +1,5 @@ -// Copyright (c) 2020, ARM Limited. +// Copyright (c) 2020-2023, ARM Limited. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ namespace TosaReference // 3. Else_val: Rank N, type= // 4. Result: Rank N, type= // Cond, Then_val, Else_val need to be mutually-broadcastable -template +template class OpSelectBase : public GraphNode { public: @@ -39,7 +39,7 @@ public: virtual int checkTensorAttributes(); virtual int eval(); - using CondEigenType = typename GetEigenType::type; + using CondEigenType = typename GetEigenType::type; using InEigenType = typename GetEigenType::type; using TCond = Eigen::Tensor; using TIn = Eigen::Tensor; @@ -55,7 +55,7 @@ protected: }; // primary class -template +template class OpSelect : public OpSelectBase { public: @@ -69,7 +69,7 @@ public: }; // partial specialization for rank 0 -template +template class OpSelect<0, Dtype> : public OpSelectBase<0, Dtype> { public: -- cgit v1.2.1