tfdbg: Add DebugGradientRefIdentity op
authorShanqing Cai <cais@google.com>
Mon, 8 Jan 2018 17:27:21 +0000 (09:27 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 8 Jan 2018 17:31:09 +0000 (09:31 -0800)
commit3392e77ccc85ccb3a21b7d8350c62ff907b2a205
treea69f095c12d5e1bdbc42fdf96a40b42c41433419
parent4b3fec75d44c1aad2bcf02f6155b8e141a42fdcf
tfdbg: Add DebugGradientRefIdentity op

Previously, the gradients debugger used DebugGradientIdentity regardless of
whether the input tensor is a reference type or non-reference type. This CL
switches it to a more specific DebugGradientRefIdentity type for reference
type tensors. This ensures that the output of the debug-identity op matches
its input exactly.

DebugGradientIdentity continues to be used for non-reference type tensors.

PiperOrigin-RevId: 181174976
tensorflow/core/api_def/base_api/api_def_DebugGradientIdentity.pbtxt
tensorflow/core/api_def/base_api/api_def_DebugGradientRefIdentity.pbtxt [new file with mode: 0644]
tensorflow/core/api_def/python_api/api_def_DebugGradientRefIdentity.pbtxt [new file with mode: 0644]
tensorflow/core/kernels/identity_op.cc
tensorflow/core/ops/array_ops.cc
tensorflow/python/debug/lib/debug_gradients.py
tensorflow/python/debug/lib/debug_gradients_test.py
tensorflow/python/ops/hidden_ops.txt