在Colab中运行Jupyter Notebook

时间:2019-08-03 06:35:13

标签: python jupyter-notebook tensorflow-probability

以张量流概率运行colab示例时出现错误。

https://github.com/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/Bayesian_Gaussian_Mixture_Model.ipynb

试图更改它,但是我认为代码需要更新。

// Error
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at FourInALine$Node.<init>(FourInALine.java:204)
    at FourInALine$Node.generateXSuccessors(FourInALine.java:238)
    at FourInALine.alphaBeta(FourInALine.java:134)
    at FourInALine.alphaBeta(FourInALine.java:157)
    at FourInALine.alphaBeta(FourInALine.java:137)
    at FourInALine.alphaBeta(FourInALine.java:157)
    at FourInALine.alphaBeta(FourInALine.java:137)
    at FourInALine.main(FourInALine.java:72)

没有错误。 colab笔记本应使用最新更新运行。 我认为代码需要更新,我尝试用更多错误来更新配置。

1 个答案:

答案 0 :(得分:0)

错误显示模块'tensorflow'没有属性'ConfigProto',这意味着您需要导入..如果它不起作用,则导入虚拟环境