我使用的是以前版本的tensorflow,但是我想使用tensorflow 2.0.0 alpha,我已经用pip安装了它
pip install tensorflow==2.0.0-alpha0
而不是运行简单的代码来检查哪个版本。
import tensorflow as tf
print(tf.__version__)
但结果是:
1.13.0-rc1
所以我去查过皮普
pip3 show tensorflow
我得到了:
Name: tensorflow
Version: 2.0.0a0
Summary: TensorFlow is an open s
我用图形处理器从Linux训练了一个模型,并用model.save('my_model.h5')保存了它。
在Linux机器上打开.h5模型是没有问题的。
from keras.models import load_model
model = load_model('my_model.h5')
然而,当我在我的Mac上加载它时,我遇到了问题(它没有GPU,可能tensorflow也不是GPU版本的):
OSError: Unable to open file (unable to open file: name = 'model0.h5', e
我遇到了一个问题,我将安装一个包(比如tensorflow或dpu_utils),它最终会在与sys.executable不同的位置结束。例如,当我在我的终端上运行pip show dpu_utils时,我得到以下信息:
Name: dpu-utils
Version: 0.2.20
Summary: Python utilities used by Deep Procedural Intelligence
Home-page: https://github.com/microsoft/dpu-utils
Author: Deep Procedural Intelligence
Author-