tensorflow-probability错误:AttributeError:模块'tensorflow_probability'没有属性'distributions'

时间:2019-03-05 19:19:01

标签: python tensorflow redhat tensorflow-probability

我正在使用Tensorflow概率Web页面上提供的小样本代码在我们的网格环境(在redhat6.10上运行)上测试tensorflow概率。我能够导入tensorflow_probability,但是在执行下一个命令时遇到以下错误:  features = tfp.distributions.Normal(loc = 0。,scale = 1。)。sample(int(100e3))

 AttributeError                            Traceback (most recent call last)
<ipython-input-3-6342260260f2> in <module>
----> 1 features = tfp.distributions.Normal(loc=0., scale=1.).sample(int(100e3))

AttributeError: module 'tensorflow_probability' has no attribute 'distributions'

有人有想法吗?这次我在Windows PC上运行相同的代码时,它运行良好。

0 个答案:

没有答案