Fix bugs in AssignOp:
authorA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 30 Apr 2018 19:01:35 +0000 (12:01 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 30 Apr 2018 19:04:15 +0000 (12:04 -0700)
commitc3e9ca763cbacee961e247df02ec91b52cc59326
tree485252e3e13ae4dbcb0667018e045fd5adf9fad4
parentbdaa70c9e4b4215d68fd50ff120c8945ce53c18c
Fix bugs in AssignOp:
 1. Releasing the unique_ptr would "leak" a TensorBuffer refcount.
 2. The output shape is defined by rhs, not lhs.

PiperOrigin-RevId: 194822802
tensorflow/core/kernels/assign_op.h