目前限制与昇腾AI310 平台的ATC 限制目前只能比较良好的转 tensorflow pb 模型。在昇腾AI310上安装tensorflow 2.1步骤

1. 下载平台对应的 tensorflow-2.1.1-cp37-cp37m-linux_aarch64.whl 

百度网盘: 

链接:https://pan.baidu.com/s/1uPSDW30qBAM-68-PCxpVYg 
提取码:gb9e 

2. pip3 install tensorflow-2.1.1-cp37-cp37m-linux_aarch64.whl

 

如果遇到下面的错误:

  ----------------------------------------
  Failed building wheel for h5py
  Running setup.py clean for h5py
Successfully built scipy
Failed to build h5py
Building wheels for collected packages: wrapt, termcolor, gast
  Building wheel for wrapt (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/b1/c2/ed/d62208260edbd3fa7156545c00ef966f45f2063d0a84f8208a
  Building wheel for termcolor (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/7c/06/54/bc84598ba1daf8f970247f550b175aaaee85f68b4b0c5ab2c6
  Building wheel for gast (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/5c/2e/7e/a1d4d4fcebe6c381f378ce7743a3ced3699feb89bcfbdadadd
Successfully built wrapt termcolor gast
Could not build wheels for h5py which use PEP 517 and cannot be installed directly
 

解决方法:

sudo apt install python3-h5py libhdf5-dev

 

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐