From 7fa5223943d4087ccb233d41fed3c9015204762b Mon Sep 17 00:00:00 2001 From: onepick Date: Fri, 14 Jan 2022 17:18:16 +0800 Subject: [PATCH] Disable float32 to float16 conversion by default(#267) Disable conversion since this will impact the precision. User should enable this conversion explicitly. Signed-off-by: Jia Co-authored-by: Jia --- src/tim/vx/graph.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tim/vx/graph.cc b/src/tim/vx/graph.cc index 4819496..fd0d033 100644 --- a/src/tim/vx/graph.cc +++ b/src/tim/vx/graph.cc @@ -156,6 +156,8 @@ bool GraphImpl::Compile() { vsi_nn_SetGraphVersion(graph_, major, minor, patch); + vsi_nn_SetGraphFastMode(graph_, false); + std::call_once(setio_once_, [&status, this]() { status = (vsi_nn_SetGraphInputs(this->graph_, this->inputs_.data(), this->inputs_.size()) &&