首页 > 解决方案 > 如何在 AWS EC2 上安装 tensorflow cpu 进行推理

问题描述

我有亚马逊 EC2 服务器。我安装了 TensorFlow-cpu 用于推理目的,pip install tensorflow-cpu 但我给出了以下错误

I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is opti           mized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-cri           tical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-03-26 01:56:05.690616: I tensorflow/core/platform/profile_utils/cpu_utils.cc:112] CPU Frequency: 230004000           0 Hz
2021-03-26 01:56:05.690795: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f19948b5500 initia           lized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-03-26 01:56:05.690811: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host           , Default Version
2021-03-26 01:56:06.163095: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:116] None of the MLIR op           timization passes are enabled (registered 2)

有什么解决办法

标签: pythontensorflowamazon-ec2

解决方案


推荐阅读