aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWon Jeon <won.jeon@arm.com>2024-04-19 17:35:13 +0000
committerWon Jeon <won.jeon@arm.com>2024-04-19 17:35:13 +0000
commit0c913672541303eed1f1f4361781a150dc780093 (patch)
tree50dacda3cfe0c0b26434fc006e0ea99485777411
parentb5fcfc0cfeffeb3fe9f05c32dc678ab09b2cee31 (diff)
downloadreference_model-0c913672541303eed1f1f4361781a150dc780093.tar.gz
Update float8 header and namespace
Signed-off-by: Won Jeon <won.jeon@arm.com> Change-Id: I75840f6b4ff11a63c4c874f8ded23afb5a71ad55
-rw-r--r--reference_model/src/ops/type_conversion.cc12
m---------thirdparty/serialization_lib0
2 files changed, 6 insertions, 6 deletions
diff --git a/reference_model/src/ops/type_conversion.cc b/reference_model/src/ops/type_conversion.cc
index 40e6c64..9719f07 100644
--- a/reference_model/src/ops/type_conversion.cc
+++ b/reference_model/src/ops/type_conversion.cc
@@ -15,7 +15,7 @@
#include "type_conversion.h"
#include "arith_util.h"
-#include "float_utils.h"
+#include "cfloat.h"
#include "half.hpp"
#include "quant_util.h"
#include "template_types.h"
@@ -25,11 +25,11 @@ using namespace TosaReference;
using namespace Eigen;
using namespace tosa;
-using fp16 = tosa::float_t<int16_t, 5, true, true, true>;
-using bf16 = tosa::float_t<int16_t, 8, true, true, true>;
-using fp32 = tosa::float_t<int32_t, 8, true, true, true>;
-using fp8e4m3 = tosa::float_t<int8_t, 4, true, true, false>;
-using fp8e5m2 = tosa::float_t<int8_t, 5, true, true, true>;
+using fp16 = ct::cfloat<int16_t, 5, true, true, true>;
+using bf16 = ct::cfloat<int16_t, 8, true, true, true>;
+using fp32 = ct::cfloat<int32_t, 8, true, true, true>;
+using fp8e4m3 = ct::cfloat<int8_t, 4, true, true, false>;
+using fp8e5m2 = ct::cfloat<int8_t, 5, true, true, true>;
template <int Rank, TOSA_REF_TYPE InDtype, TOSA_REF_TYPE OutDtype>
OpRescale<Rank, InDtype, OutDtype>::OpRescale(SubgraphTraverser* sgt_, TosaAttributeBase* attribute_, uint64_t id_)
diff --git a/thirdparty/serialization_lib b/thirdparty/serialization_lib
-Subproject 50256e168c3e759f03445bb872d0a43da1a6ba3
+Subproject 520b7ca51f1aa2835d45ca7266a07b4028d449d