2 * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #error Define CONFIG before including this file
21 // Name | Type | Default
22 CONFIG(GRAPH_DOT_DUMP , int , "0")
23 CONFIG(BACKENDS , std::string , "cpu;acl_cl;acl_neon;ruy;xnnpack;gpu_cl;trix;bcq") // FIXME Remove bcq
24 CONFIG(OP_BACKEND_ALLOPS , std::string , "")
25 CONFIG(OP_BACKEND_MAP , std::string , "")
26 CONFIG(ONERT_LOG_ENABLE , bool , "0")
27 CONFIG(CPU_MEMORY_PLANNER , std::string , "WIC")
28 CONFIG(EXECUTOR , std::string , "Linear")
29 CONFIG(ACL_LAYOUT , std::string , "none")
30 CONFIG(NCNN_LAYOUT , std::string , "NCHW")
31 CONFIG(PROFILING_MODE , bool , "0")
32 CONFIG(USE_SCHEDULER , bool , "0")
33 CONFIG(TRACE_FILEPATH , std::string , "")
34 CONFIG(FP16_ENABLE , bool , "0")
35 CONFIG(RUY_THREADS , int , "-1")
36 CONFIG(XNNPACK_THREADS , int , "-1")
37 CONFIG(USE_MMAPED_DATA , bool , "0")
39 // Auto-generate all operations
41 #define OP(InternalName) \
42 CONFIG(OP_BACKEND_ ## InternalName, std::string, "")
43 #include "ir/Operations.lst"