Y.Z*_* X. 3 javascript tensorflow
环境:
我正在尝试在 Node.js 上使用 tensorflow.js。
我安装了tfjs-node
,它自动构建成功(node-gyp),但运行时收到以下错误:
tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
Python 版本中的类似问题可以在这里找到:
您的 CPU 支持此 TensorFlow 二进制文件未编译使用的指令:AVX AVX2
目前,我不关心性能,所以我只想禁用警告,不要启用 AVX/FMA。在 JavaScript 中,我该怎么办?
运行前设置环境变量。
视窗:
$ set TF_CPP_MIN_LOG_LEVEL=2
Linux/MacOS:
$ export TF_CPP_MIN_LOG_LEVEL=2
归档时间: |
|
查看次数: |
7759 次 |
最近记录: |