Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 1 | |
Eric Kunze | 286f834 | 2022-06-22 11:30:23 -0700 | [diff] [blame] | 2 | // Copyright (c) 2020-2022, ARM Limited. |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 3 | // |
| 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 Sloyan | ba5fad3 | 2022-09-26 13:31:43 +0100 | [diff] [blame] | 19 | #include <iostream> |
| 20 | #include <stdio.h> |
| 21 | |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 22 | struct func_config_t |
| 23 | { |
Eric Kunze | 286f834 | 2022-06-22 11:30:23 -0700 | [diff] [blame] | 24 | 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 Ward | 24dbc42 | 2022-10-19 12:20:31 +0100 | [diff] [blame] | 39 | bool float_is_big_endian = false; // Set in arith_util.h by float_is_big_endian() |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 40 | }; |
| 41 | |
Eric Kunze | e5e2676 | 2020-10-13 16:11:07 -0700 | [diff] [blame] | 42 | #endif |