Adds commandline option (toco_compatible, bool) that makes the optimize_for_inference...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 4 Apr 2018 22:45:16 +0000 (15:45 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 4 Apr 2018 22:49:04 +0000 (15:49 -0700)
commitc8e3d2b43e4cbf9a9e32567a2e59597916f5b0b9
tree1479778c8fa716d28502a623da10ab8bedccde3d
parent4cfb393b087dc50c150054531186ccb71882e2d0
Adds commandline option (toco_compatible, bool) that makes the optimize_for_inference script only use TOCO friendly ops. In particular, FusedResizeAndPadConv2D is not supported by TOCO.

This change does not alter existing behavior (the boolean is set to false by default).

PiperOrigin-RevId: 191660378
tensorflow/python/tools/optimize_for_inference.py
tensorflow/python/tools/optimize_for_inference_lib.py