aboutsummaryrefslogtreecommitdiff
path: root/reference_model/include/func_config.h
diff options
context:
space:
mode:
authorJerry Ge <jerry.ge@arm.com>2023-07-19 23:08:16 +0000
committerJerry Ge <jerry.ge@arm.com>2023-07-25 22:49:17 +0000
commit9c9c8dafe8f9a32bd70aee268cd537b93865a3ba (patch)
treee94fc471261b9f72bef86033fbc76022f55d5de8 /reference_model/include/func_config.h
parentc1e13432b4a218781afd6b0171d4afff11730433 (diff)
downloadreference_model-9c9c8dafe8f9a32bd70aee268cd537b93865a3ba.tar.gz
Run clang-format and update copyright
- Also added run clang-format to pre-commit runs Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: I4e59ac0afbaa30dce0773aa63d92a1a3b119e2f3
Diffstat (limited to 'reference_model/include/func_config.h')
-rw-r--r--reference_model/include/func_config.h34
1 files changed, 18 insertions, 16 deletions
diff --git a/reference_model/include/func_config.h b/reference_model/include/func_config.h
index 900ebab..1e93b89 100644
--- a/reference_model/include/func_config.h
+++ b/reference_model/include/func_config.h
@@ -19,29 +19,31 @@
#include <iostream>
#include <stdio.h>
-struct tosa_level_t {
+struct tosa_level_t
+{
int32_t MAX_RANK = 0;
int32_t MAX_KERNEL = 0;
int32_t MAX_STRIDE = 0;
int32_t MAX_SCALE = 0;
- bool operator!=(const tosa_level_t &rhs) {
- return !(MAX_RANK == rhs.MAX_RANK && MAX_KERNEL == rhs.MAX_KERNEL &&
- MAX_STRIDE == rhs.MAX_STRIDE && MAX_SCALE == rhs.MAX_SCALE);
+ bool operator!=(const tosa_level_t& rhs)
+ {
+ return !(MAX_RANK == rhs.MAX_RANK && MAX_KERNEL == rhs.MAX_KERNEL && MAX_STRIDE == rhs.MAX_STRIDE &&
+ MAX_SCALE == rhs.MAX_SCALE);
}
};
struct func_config_t
{
- std::string operator_fbs = "tosa.fbs";
- std::string test_desc = "desc.json";
- std::string flatbuffer_dir = "";
- std::string output_dir = "";
- std::string tosa_file = "";
- std::string ifm_name = "";
- std::string ifm_file = "";
- std::string ofm_name = "";
- std::string ofm_file = "";
+ std::string operator_fbs = "tosa.fbs";
+ std::string test_desc = "desc.json";
+ std::string flatbuffer_dir = "";
+ std::string output_dir = "";
+ std::string tosa_file = "";
+ std::string ifm_name = "";
+ std::string ifm_file = "";
+ std::string ofm_name = "";
+ std::string ofm_file = "";
uint32_t eval = 1;
uint32_t validate_only = 0;
uint32_t output_tensors = 1;
@@ -49,12 +51,12 @@ struct func_config_t
uint32_t dump_intermediates = 0;
std::string fp_format = "0.5";
uint32_t precise_mode = 0;
- bool abs_mode = 0; // set in main as second run of precise_mode
- bool float_is_big_endian = false; // Set in arith_util.h by float_is_big_endian()
+ bool abs_mode = 0; // set in main as second run of precise_mode
+ bool float_is_big_endian = false; // Set in arith_util.h by float_is_big_endian()
tosa_level_t tosa_level;
static constexpr tosa_level_t EIGHTK = { 6, 8192, 8192, 64 };
- static constexpr tosa_level_t NONE = { 0, 0, 0, 0 };
+ static constexpr tosa_level_t NONE = { 0, 0, 0, 0 };
};
#endif