2 Star 3 Fork 2

openvinotoolkit-prc/oneDNN

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Scripts

Generating debug header

generate_dnnl_debug.py generates the oneDNN debug header and source files with enum to string mapping. Each time a new tag is added to the API, this script should be executed to re-generate the debug header and relevant source code.

Usage

# Generate dnnl_config.h
# -DDNNL_EXPERIMENTAL_SPARSE=ON is required to preserve sparse-specific symbols
$ (mkdir -p build && cd build && cmake -DONEDNN_BUILD_GRAPH=OFF -DDNNL_EXPERIMENTAL_SPARSE=ON ..)

# Generate types.xml
# CastXML can be found at https://github.com/CastXML/CastXML
$ castxml --castxml-cc-gnu-c clang --castxml-output=1 -Iinclude -Ibuild/include include/oneapi/dnnl/dnnl_types.h -o types.xml

# run generate_dnnl_debug.py
$ ./scripts/generate_dnnl_debug.py types.xml

Generating format tags

generate_format_tags.py generates C++ API tags based on C API tags. Each time a new tag is added to the C API, this script should be executed to add this tag to the C++ API.

Usage

$ ./scripts/generate_format_tags.py

Verbose converter

See verbose_converter/README.md

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/openvinotoolkit-prc/oneDNN.git
git@gitee.com:openvinotoolkit-prc/oneDNN.git
openvinotoolkit-prc
oneDNN
oneDNN
v3.6_for_ie_master

搜索帮助