From f20f28beea3b68e9a0179bf2b669f4827b4b6ac7 Mon Sep 17 00:00:00 2001 From: yordun Date: Mon, 22 Jan 2018 20:55:01 +0000 Subject: [PATCH] Removes redundant variable assignment (#16286) Addresses alert raised by lgtm.com: https://lgtm.com/projects/g/tensorflow/tensorflow/snapshot/e6183fbeecf069148371be83988e8e5db2b14185/files/tensorflow/python/framework/constant_op.py#xb77a2f6647d782be:1 --- tensorflow/python/framework/constant_op.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tensorflow/python/framework/constant_op.py b/tensorflow/python/framework/constant_op.py index ac915157f528e7..8c31e59b292640 100644 --- a/tensorflow/python/framework/constant_op.py +++ b/tensorflow/python/framework/constant_op.py @@ -59,7 +59,6 @@ def _eager_reshape(tensor, shape, ctx): attr_t = tensor._datatype_enum() # pylint: disable=protected-access attr_tshape, (shape,) = execute.args_to_matching_eager( [shape], ctx, dtypes.int32) - attr_tshape = attr_tshape inputs_flat = [tensor, shape] attrs = ("T", attr_t, "Tshape", attr_tshape) result, = execute.execute(