1 | /******************************************************************************* |
2 | * Copyright 2017-2022 Intel Corporation |
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 | |
17 | // DO NOT EDIT, AUTO-GENERATED |
18 | // Use this script to update the file: scripts/generate_dnnl_debug.py |
19 | |
20 | // clang-format off |
21 | |
22 | #ifndef DNNL_DEBUG_HPP |
23 | #define DNNL_DEBUG_HPP |
24 | |
25 | #include "oneapi/dnnl/dnnl.h" |
26 | |
27 | dnnl_data_type_t str2dt(const char *str); |
28 | dnnl_format_tag_t str2fmt_tag(const char *str); |
29 | |
30 | /* status */ |
31 | const char *status2str(dnnl_status_t status); |
32 | |
33 | /* data type */ |
34 | const char *dt2str(dnnl_data_type_t dt); |
35 | |
36 | /* format */ |
37 | const char *fmt_tag2str(dnnl_format_tag_t tag); |
38 | |
39 | /* engine kind */ |
40 | const char *engine_kind2str(dnnl_engine_kind_t kind); |
41 | |
42 | /* scratchpad mode */ |
43 | const char *scratchpad_mode2str(dnnl_scratchpad_mode_t mode); |
44 | |
45 | /* fpmath mode */ |
46 | const char *fpmath_mode2str(dnnl_fpmath_mode_t mode); |
47 | |
48 | #endif |
49 | |