diff options
author | Won Jeon <won.jeon@arm.com> | 2024-04-19 17:35:13 +0000 |
---|---|---|
committer | Won Jeon <won.jeon@arm.com> | 2024-04-19 17:35:13 +0000 |
commit | 0c913672541303eed1f1f4361781a150dc780093 (patch) | |
tree | 50dacda3cfe0c0b26434fc006e0ea99485777411 /reference_model/src/ops/type_conversion.cc | |
parent | b5fcfc0cfeffeb3fe9f05c32dc678ab09b2cee31 (diff) | |
download | reference_model-0c913672541303eed1f1f4361781a150dc780093.tar.gz |
Update float8 header and namespace
Signed-off-by: Won Jeon <won.jeon@arm.com>
Change-Id: I75840f6b4ff11a63c4c874f8ded23afb5a71ad55
Diffstat (limited to 'reference_model/src/ops/type_conversion.cc')
-rw-r--r-- | reference_model/src/ops/type_conversion.cc | 12 |
1 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_) |