diff --git a/edward/util/random_variables.py b/edward/util/random_variables.py index 3a581505a..61de16f19 100644 --- a/edward/util/random_variables.py +++ b/edward/util/random_variables.py @@ -12,7 +12,6 @@ from edward.models import PointMass from edward.util.graphs import random_variables from tensorflow.core.framework import attr_value_pb2 -from tensorflow.python.framework.ops import set_shapes_for_outputs from tensorflow.python.util import compat tfb = tf.contrib.distributions.bijectors @@ -401,8 +400,6 @@ def copy(org_instance, dict_swap=None, scope="copied", compute_device = True op_type = new_name - if compute_shapes: - set_shapes_for_outputs(new_op) graph._record_op_seen_by_control_dependencies(new_op) if compute_device: