正如标题所述,我想将Tensorflow分布更新为Tensorflow概率。我遵循本教程从源构建Tensorflow。https://medium.com/searce/installing-tensorflow-gpu-with-nvidia-cuda-on-a-google-cloud-platform-vm-instance-b059ea47e55c
当我试图使用bazel构建tensorflow时,我收到了这个警告。
WARNING: /home/tensorflow/tensorflow/contrib/bayesflow/BUILD:17:1: in
py_library rule //tensorflow/contrib/bayesflow:bayesflow_py: target
'//tensorflow/contrib/bayesflow:bayesflow_py' depends on deprecated
target '//tensorflow/contrib/distributions:distributions_py':
TensorFlow Distributions has migrated to TensorFlow Probability
(https://github.com/tensorflow/probability). Deprecated copies
remaining in tf.contrib.distributions are unmaintained, unsupported,
and will be removed by late 2018. You should update all usage of
`tf.contrib.distributions` to `tfp.distributions`.由于我刚开始从资源中构建Tensorflow,所以我试图准确地搜索如何做到这一点,但是我无法获得足够的信息。
在init.py文件中,它说
“表示统计分布和操作操作的类。使用tfp.distributions代替。”
这是否意味着我应该将Tensorflow概率中的所有文件添加到当前的tensorflow文件夹中?重写init文件删除废弃的Tensorflow分发?我不知道我到底要做什么。
如果你能给我一些关于如何做这个或任何与这个问题相关的事情的资源,那将是有帮助的。
谢谢。
发布于 2019-01-15 17:40:58
当您完成从源构建TF时,您将得到一个需要安装pip的.whl文件。然后,你也应该安装tfp-每晚,这是TF概率的夜间包装。您还可以按照TFP GitHub页面上的说明从源代码安装TFP。请注意,如果您想要的只是这两个包的最近特性,那么只需每晚安装tf和tfp就可以非常接近于源代码构建。如果您想要修改TF库,那么从源构建是可行的方法。
希望这能有所帮助!
https://stackoverflow.com/questions/54173928
复制相似问题