什么是tf_kernel_library和cc_library之间的区别

发布于 2025-02-14 01:07:42 字数 265 浏览 0 评论 0原文

我正在学习Bazel构建以编译TensorFlow源代码。 在此bazel 我看到''''tf_kernel_library'''''''''cc_library'''。 这两个之间的确切区别是什么?

I am learning bazel build to compile the tensorflow source code.
In this bazel build file, I see '''tf_kernel_library''' and '''cc_library'''.
What is the exact difference between these two?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

飘逸的'云 2025-02-21 01:07:42

“ TF_KERNEL_LIBRARY”是 Custome规则和“ CC_Library”是 bazel buildin ulinin ulion

  • “ tf_kernel_library”是构建TensorFlow opkernel的规则。与“ cc_library”的最大区别是“ tf_kernel_library”编译cu.cccu.h.cc外.h,而“ cc_library”不。

  • “ cc_library”构建.cc.h仅适用于C ++

"tf_kernel_library" is a custome rule and "cc_library" is a bazel buildin rule

  • "tf_kernel_library" is a rule to build a TensorFlow OpKernel. The biggest difference from "cc_library" is that "tf_kernel_library" compiles cu.cc and cu.h in addition to .cc and .h, while "cc_library" does not.

  • "cc_library" builds .cc and .h only for c++

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文