From 2139e6ee7c181db11bec61742336304017cbbd59 Mon Sep 17 00:00:00 2001 From: Eugene Brevdo Date: Tue, 6 Feb 2018 14:37:21 -0800 Subject: [PATCH] [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 --- tensorflow/python/framework/ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.7.4