aboutsummaryrefslogtreecommitdiff
path: root/reference_model/src/main.cpp
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/src/main.cpp
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/src/main.cpp')
-rw-r--r--reference_model/src/main.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/reference_model/src/main.cpp b/reference_model/src/main.cpp
index 55e6d67..0c86cbd 100644
--- a/reference_model/src/main.cpp
+++ b/reference_model/src/main.cpp
@@ -16,17 +16,17 @@
#include "model_runner.h"
#include "version.h"
+#include "arith_util.h"
#include "command_line_utils.h"
#include "ops/op_factory.h"
#include "subgraph_traverser.h"
#include "tosa_serialization_handler.h"
-#include "arith_util.h"
+#include <Eigen/CXX11/Tensor>
#include <fstream>
#include <iostream>
-#include <stdio.h>
-#include <Eigen/CXX11/Tensor>
#include <nlohmann/json.hpp>
+#include <stdio.h>
using namespace TosaReference;
using namespace tosa;
@@ -42,10 +42,8 @@ bool isComplianceModeDotProduct(json& test_desc);
int main(int argc, char** argv)
{
- TosaVersion model_version(TOSA_REFERENCE_MODEL_VERSION_MAJOR,
- TOSA_REFERENCE_MODEL_VERSION_MINOR,
- TOSA_REFERENCE_MODEL_VERSION_PATCH,
- TOSA_REFERENCE_MODEL_VERSION_DRAFT);
+ TosaVersion model_version(TOSA_REFERENCE_MODEL_VERSION_MAJOR, TOSA_REFERENCE_MODEL_VERSION_MINOR,
+ TOSA_REFERENCE_MODEL_VERSION_PATCH, TOSA_REFERENCE_MODEL_VERSION_DRAFT);
// Initialize configuration and debug subsystems
g_func_debug.init_debug(0);
@@ -245,7 +243,8 @@ int loadGraph(TosaSerializationHandler& tsh, json& test_desc)
{
if (tsh.LoadFileSchema(g_func_config.operator_fbs.c_str()))
{
- FATAL_ERROR("\nJSON file detected. Unable to load TOSA flatbuffer schema from: %s\nCheck --operator_fbs is set correctly",
+ FATAL_ERROR("\nJSON file detected. Unable to load TOSA flatbuffer schema from: %s\nCheck --operator_fbs "
+ "is set correctly",
g_func_config.operator_fbs.c_str());
}
@@ -259,9 +258,8 @@ int loadGraph(TosaSerializationHandler& tsh, json& test_desc)
{
if (tsh.LoadFileTosaFlatbuffer(graph_fullname))
{
- FATAL_ERROR(
- "\nError loading TOSA flatbuffer file: %s\n%s%s",
- graph_fullname, error_msg1.c_str(), error_msg2.c_str());
+ FATAL_ERROR("\nError loading TOSA flatbuffer file: %s\n%s%s", graph_fullname, error_msg1.c_str(),
+ error_msg2.c_str());
}
}