Tensorflow导入耗时过长



我安装了tensorflow cpu,导入大约需要5秒。

用于安装tensorflow的命令:

pip install tensorflow-cpu

我在stackoverflow和github上找到了其他相关文章,但似乎都没有帮助。

注意:我使用的是带windows的intel i7第8代。

在我的系统上,5秒也是导入所需的时间。

如果你对细节感兴趣,你可以使用

import cProfile
cProfile.run('import tensorflow')

以配置通话。

相关:进口tensorflow很慢?,是什么原因导致tensorflow导入如此缓慢?,如何加速import tensorflow?(旧版(

最新更新