[英]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.