在服务器中为张量流启用AVX2,AVx512标志

问题描述

我试图在django网站的后端加载经过Google colab训练的模型。 托管服务没有gpu支持,因此我需要启用tensorflow模型的cpu执行的AVX2,AVX512标志。我经历了启用它们的过程。但是每个过程都包括bazel的安装。如何在bazel中安装bazel后端并执行它来设置我的张量流 在托管环境中使用标志。这是使用tensorflow cpu错误

I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (onednN)to use the following cpu instructions in performance-critical operations:  AVX2 AVX512F FMA#012To enable them in other operations,rebuild TensorFlow with the appropriate compiler flags.

我想知道是否有使用pip的命令安装带有必需标志AVX2的tensorflow.AVx512fetc.please帮助

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)