Turn trivial Pack ops with a single input into ExpandDims ops to avoid copying the...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 12 Mar 2018 17:37:20 +0000 (10:37 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 12 Mar 2018 17:42:39 +0000 (10:42 -0700)
commit89177f289e9467e04b205a1a3e705ad67d9854d2
tree92c907bbf012eaac91eebf6147c52f2a2dea29a6
parentaab543c3013e3018d409ed2b8cd957f3465d1ab2
Turn trivial Pack ops with a single input into ExpandDims ops to avoid copying the tensor.

PiperOrigin-RevId: 188742516
tensorflow/core/grappler/op_types.cc
tensorflow/core/grappler/op_types.h
tensorflow/core/grappler/optimizers/constant_folding.cc
tensorflow/core/grappler/optimizers/constant_folding.h
tensorflow/core/grappler/optimizers/constant_folding_test.cc