Some fixes to support another TF graph:
authorA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 4 May 2018 19:28:42 +0000 (12:28 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 4 May 2018 20:38:13 +0000 (13:38 -0700)
commit5ca373b4b64167f8b0fcab96d7d2e7886ea31b6a
treef82cba06cb52c035f834f8fb8c5daa9bee3ed9bb
parentbe9b87375adecad9bd8bb12c81b2566c77a68ad7
Some fixes to support another TF graph:
1. Fix ResolveBatchNormalization to avoid deleting arrays that may still be
used.
2. Correctly count the number of ops using a given array, even when some ops
use the same array as more than one of their inputs.
3. In PropagateFixedSizes for Concatenation ops, when resolving a -1 wildcard
to a fixed value, we were doing so in a local 'axis' variable without actually
updating op->axis! The resulting -1 value still in op->axis tripped runtime code,
causing the concatenation to misbehave during inference.

PiperOrigin-RevId: 195454037
tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc
tensorflow/contrib/lite/toco/graph_transformations/resolve_batch_normalization.cc
tensorflow/contrib/lite/toco/tooling_util.cc