blob: d9b51d5ebdae5265230203aa4204c676be1e107e [file] [log] [blame]
Eric Kunzee5e26762020-10-13 16:11:07 -07001
Eric Kunze286f8342022-06-22 11:30:23 -07002// Copyright (c) 2020-2022, ARM Limited.
Eric Kunzee5e26762020-10-13 16:11:07 -07003//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#ifndef FUNC_CONFIG_H_
17#define FUNC_CONFIG_H_
18
Matthew Sloyanba5fad32022-09-26 13:31:43 +010019#include <iostream>
20#include <stdio.h>
21
Eric Kunzee5e26762020-10-13 16:11:07 -070022struct func_config_t
23{
Eric Kunze286f8342022-06-22 11:30:23 -070024 std::string operator_fbs = "tosa.fbs";
25 std::string test_desc = "desc.json";
26 std::string flatbuffer_dir = "";
27 std::string output_dir = "";
28 std::string tosa_file = "";
29 std::string ifm_name = "";
30 std::string ifm_file = "";
31 std::string ofm_name = "";
32 std::string ofm_file = "";
33 uint32_t eval = 1;
34 uint32_t validate_only = 0;
35 uint32_t output_tensors = 1;
36 uint32_t tosa_profile = 1;
37 uint32_t dump_intermediates = 0;
38 std::string fp_format = "0.5";
James Ward24dbc422022-10-19 12:20:31 +010039 bool float_is_big_endian = false; // Set in arith_util.h by float_is_big_endian()
Eric Kunzee5e26762020-10-13 16:11:07 -070040};
41
Eric Kunzee5e26762020-10-13 16:11:07 -070042#endif