Use Identity instead of Snapshot when the graph does not contain ops that modify...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 11 May 2018 17:43:30 +0000 (10:43 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 11 May 2018 17:48:25 +0000 (10:48 -0700)
commit227eee585118e942e5fefa8f949562749c482f7a
tree42782cee75a1455c612f65ea135f2e6108b3634e
parentb125f6ad1f94be7541d56e6edf9235b3cf68f76e
Use Identity instead of Snapshot when the graph does not contain ops that modify their inputs.

PiperOrigin-RevId: 196275133
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