Cannot import name 'set_shapes_for_outputs'


#1

Hello
when i put:
from edward.models import Normal
i get the error :
Traceback (most recent call last):
File “drive.py”, line 16, in
from UDAI import UDAI
File “C:\Users\mkhaoula\Desktop\Bayesien2Dcnn\UDAI.py”,
from edward.inferences.variational_inference import V
File "C:\Users\mkhaoula\AppData\Local\Continuum\anacond
from edward import criticisms
File "C:\Users\mkhaoula\AppData\Local\Continuum\anacond
from edward.criticisms.evaluate import *
File "C:\Users\mkhaoula\AppData\Local\Continuum\anacond
from edward.util import check_data, get_session, comp
File "C:\Users\mkhaoula\AppData\Local\Continuum\anacond
from edward.util.random_variables import *
File "C:\Users\mkhaoula\AppData\Local\Continuum\anacond
from tensorflow.python.framework.ops import set_shape
ImportError: cannot import name ‘set_shapes_for_outputs’

my tensorflow version is :1.5.0
my edward version : 1.3.5
it’s a problem related to installation of edward librairy or non compatibility of tensorflow and edward ?
Thank you


#2

I replaced the import line edward/util/random_variables.py #L15

from tensorflow.python.framework.ops import set_shape_and_handle_data_for_outputs as set_shapes_for_outputs