blei-lab / edward

A probabilistic programming language in TensorFlow. Deep generative models, variational inference.
http://edwardlib.org
Other
4.83k stars 759 forks source link

Didn't support latest tensorflow 1.13 #932

Open AnakinShieh opened 5 years ago

AnakinShieh commented 5 years ago

When importing edwards,

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-61f9854c75fd> in <module>()
      4 from __future__ import print_function
      5 
----> 6 import edward as ed
      7 import matplotlib.pyplot as plt
      8 import numpy as np

~\Anaconda3\envs\tf1.13\lib\site-packages\edward\__init__.py in <module>()
      3 from __future__ import print_function
      4 
----> 5 from edward import criticisms
      6 from edward import inferences
      7 from edward import models

~\Anaconda3\envs\tf1.13\lib\site-packages\edward\criticisms\__init__.py in <module>()
      5 from __future__ import print_function
      6 
----> 7 from edward.criticisms.evaluate import *
      8 from edward.criticisms.ppc import *
      9 from edward.criticisms.ppc_plots import *

~\Anaconda3\envs\tf1.13\lib\site-packages\edward\criticisms\evaluate.py in <module>()
      8 
      9 from edward.models import RandomVariable
---> 10 from edward.util import check_data, get_session, compute_multinomial_mode, \
     11     with_binary_averaging
     12 

~\Anaconda3\envs\tf1.13\lib\site-packages\edward\util\__init__.py in <module>()
      8 from edward.util.metrics import *
      9 from edward.util.progbar import *
---> 10 from edward.util.random_variables import *
     11 from edward.util.tensorflow import *
     12 

~\Anaconda3\envs\tf1.13\lib\site-packages\edward\util\random_variables.py in <module>()
     13 from edward.util.graphs import random_variables
     14 from tensorflow.core.framework import attr_value_pb2
---> 15 from tensorflow.python.framework.ops import set_shapes_for_outputs
     16 from tensorflow.python.util import compat
     17 

ImportError: cannot import name 'set_shapes_for_outputs'
zhiiiyang commented 5 years ago

For now, you can temporarily solve the problem by installing tensorflow 1.2.0. https://github.com/blei-lab/edward/issues/918#issuecomment-468786518