Correct op::Attr usage in C++ gradient implementations.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 5 Mar 2018 22:45:28 +0000 (14:45 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 5 Mar 2018 22:49:23 +0000 (14:49 -0800)
commit5279cf29cea96b3ec50df506bb51d8ffabdabac9
tree2a19ffcb78e2fc3836d08a63287d367a5da6c88b
parent06c7a190ac122512edf7229041f34391d8993da0
Correct op::Attr usage in C++ gradient implementations.

Also enabled TF_MUST_USE_RESULT for the generated Attr API, so we
can catch any new errors early.

Fixes #17360

PiperOrigin-RevId: 187925761
tensorflow/cc/framework/cc_op_gen.cc
tensorflow/cc/gradients/nn_grad.cc