繁体   English   中英

将Tensorflow分布更新为Tensorflow概率

[英]Updating Tensorflow Distributions to Tensorflow Probability

如标题所示,我想将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 Probability中的所有文件添加到当前的tensorflow文件夹中? 并重写init文件以删除不赞成使用的Tensorflow发行版? 我不确定该怎么做。

如果您可以给我有关如何执行此操作的资源或与此问题相关的任何内容,那将很有帮助。

谢谢。

从源代码完成TF构建后,将剩下一个需要pip安装的.whl文件。 然后,您还应该每晚安装pf-tfp,这是TF概率的每晚包装。 您也可以按照TFP GitHub页面上的说明从源代码安装TFP。 请注意,如果您想要的只是这两个软件包的最新功能,则仅安装tf-nightly和tfp-nightly将非常接近源代码构建。 如果您想修改TF库,那么从源代码构建是一种方法。

希望这可以帮助!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM