From: Eugene Brevdo Date: Tue, 6 Feb 2018 22:37:21 +0000 (-0800) Subject: [TF Ops] Bugfix to Operation initializer: error message uses node_def. X-Git-Tag: upstream/v1.7.0~31^2~947 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2139e6ee7c181db11bec61742336304017cbbd59;p=platform%2Fupstream%2Ftensorflow.git [TF Ops] Bugfix to Operation initializer: error message uses node_def. self.node_def may not yet be accessible when using the C api. PiperOrigin-RevId: 184742074 --- diff --git a/tensorflow/python/framework/ops.py b/tensorflow/python/framework/ops.py index 1fdaf96..4d7dcdb 100644 --- a/tensorflow/python/framework/ops.py +++ b/tensorflow/python/framework/ops.py @@ -1618,7 +1618,7 @@ class Operation(object): for i, x in zip(inputs, input_types)): raise TypeError("In op '%s', input types (%s) are not compatible " "with expected types (%s)" % - (self.node_def.name, [i.dtype for i in inputs], + (node_def.name, [i.dtype for i in inputs], input_types)) # Build the list of control inputs.