Ai
2 Star 1 Fork 15

src-anolis-ai/pytorch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pytorch-onednn.patch 893 Bytes
一键复制 编辑 原始数据 按行查看 历史
forrest_ly 提交于 2021-12-14 16:24 +08:00 . first commit
diff --git a/aten/src/ATen/Version.cpp b/aten/src/ATen/Version.cpp
index 0c0ea61c..cff309a9 100644
--- a/aten/src/ATen/Version.cpp
+++ b/aten/src/ATen/Version.cpp
@@ -6,7 +6,7 @@
#endif
#if AT_MKLDNN_ENABLED()
-#include <mkldnn.hpp>
+#include <dnnl.hpp>
#include <ideep.hpp>
#endif
@@ -42,12 +42,12 @@ std::string get_mkldnn_version() {
// Apparently no way to get ideep version?
// https://github.com/intel/ideep/issues/29
{
- const mkldnn_version_t* ver = mkldnn_version();
- ss << "Intel(R) MKL-DNN v" << ver->major << "." << ver->minor << "." << ver->patch
+ const dnnl_version_t* ver = dnnl_version();
+ ss << "Intel(R) ONEDNN v" << ver->major << "." << ver->minor << "." << ver->patch
<< " (Git Hash " << ver->hash << ")";
}
#else
- ss << "MKLDNN not found";
+ ss << "ONEDNN not found";
#endif
return ss.str();
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-ai/pytorch.git
git@gitee.com:src-anolis-ai/pytorch.git
src-anolis-ai
pytorch
pytorch
master

搜索帮助