Reorder element wise operators across reshape operators.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 28 Mar 2018 19:00:18 +0000 (12:00 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 28 Mar 2018 19:02:45 +0000 (12:02 -0700)
commitf9dbf697535f8262d2513ade20ada85431c323f3
tree2639e021aed2c36273c9ff2754839454307da0b1
parent70a51319f1d6e42f0d5eadbf65e941419974aac4
Reorder element wise operators across reshape operators.

This allows batch-norm folding to work across reshape operators.

PiperOrigin-RevId: 190808678
tensorflow/contrib/lite/toco/BUILD
tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h
tensorflow/contrib/lite/toco/graph_transformations/swap_elementwise_binary.cc [new file with mode: 0644]
tensorflow/contrib/lite/toco/graph_transformations/tests/BUILD
tensorflow/contrib/lite/toco/graph_transformations/tests/swap_elementwise_binary_test.cc [new file with mode: 0644]
tensorflow/contrib/lite/toco/toco_tooling.cc