diff options
author | Alexandre Passos <apassos@google.com> | 2018-10-08 13:50:12 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-10-08 13:58:40 -0700 |
commit | eec9ca8f0baccd249a49046fe31b460903e44850 (patch) | |
tree | b6397af544af7c05abca4bea08bd6354f90bedf1 /tensorflow/python/framework | |
parent | 494bbdfced3fd8596721d12e73676c4967f452e4 (diff) |
Partial support tfe.defun in tf.gradients.
Doesn't attempt to deal with cases where we might have already generated
the functiondef for the parent function as in that case we cannot easily
modify the forward pass.
PiperOrigin-RevId: 216243224
Diffstat (limited to 'tensorflow/python/framework')
-rw-r--r-- | tensorflow/python/framework/op_def_library.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/python/framework/op_def_library.py b/tensorflow/python/framework/op_def_library.py index e85bba11cd..9955a9a2cd 100644 --- a/tensorflow/python/framework/op_def_library.py +++ b/tensorflow/python/framework/op_def_library.py @@ -482,7 +482,8 @@ class OpDefLibrary(object): else: raise TypeError("%s that don't all match." % prefix) else: - raise TypeError("%s that are invalid." % prefix) + raise TypeError( + "%s that are invalid. Tensors: %s" % (prefix, values)) types = [x.dtype for x in values] inputs.extend(values) |