mirror of
https://github.com/uxlfoundation/oneDNN.git
synced 2025-10-20 18:43:49 +08:00
59 lines
1.7 KiB
C++
59 lines
1.7 KiB
C++
/*******************************************************************************
|
|
* Copyright 2017-2025 Intel Corporation
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*******************************************************************************/
|
|
|
|
// DO NOT EDIT, AUTO-GENERATED
|
|
// Use this script to update the file: scripts/generate_dnnl_debug.py
|
|
|
|
// clang-format off
|
|
|
|
#ifndef DNNL_DEBUG_HPP
|
|
#define DNNL_DEBUG_HPP
|
|
|
|
#include "oneapi/dnnl/dnnl.h"
|
|
|
|
dnnl_data_type_t str2dt(const char *str);
|
|
dnnl_sparse_encoding_t str2sparse_encoding(const char *str);
|
|
dnnl_format_tag_t str2fmt_tag(const char *str);
|
|
|
|
/* status */
|
|
const char *status2str(dnnl_status_t status);
|
|
|
|
/* data type */
|
|
const char *dt2str(dnnl_data_type_t dt);
|
|
|
|
/* format */
|
|
const char *fmt_tag2str(dnnl_format_tag_t tag);
|
|
|
|
/* encoding */
|
|
const char *sparse_encoding2str(dnnl_sparse_encoding_t encoding);
|
|
|
|
/* engine kind */
|
|
const char *engine_kind2str(dnnl_engine_kind_t kind);
|
|
|
|
/* scratchpad mode */
|
|
const char *scratchpad_mode2str(dnnl_scratchpad_mode_t mode);
|
|
|
|
/* fpmath mode */
|
|
const char *fpmath_mode2str(dnnl_fpmath_mode_t mode);
|
|
|
|
/* accumulation mode */
|
|
const char *accumulation_mode2str(dnnl_accumulation_mode_t mode);
|
|
|
|
/* rounding mode */
|
|
const char *rounding_mode2str(dnnl_rounding_mode_t mode);
|
|
|
|
#endif
|