From 8789af536516bbf403460742539380b31f9bf2c5 Mon Sep 17 00:00:00 2001 From: Asim Shankar Date: Mon, 22 Oct 2018 11:44:40 -0700 Subject: [PATCH] Remove dead code. _USE_C_SHAPES has been forced True for a while now (since TensorFlow 1.9 in June, commit: https://github.com/tensorflow/tensorflow/commit/1d74a69443f741e69f9f52cb6bc2940b4d4ae3b7) --- edward/util/random_variables.py | 3 --- 1 file changed, 3 deletions(-) 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: