-1
$ bazel-bin/tensorflow/contrib/lite/toco/toco     --input_file=resnet_v2_152/model.pb     --input_format=TENSORFLOW_GRAPHDEF --output_format=TFLITE     --output_file=resnet_v2_152/model.tflite     --inference_type=FLOAT  --input_type=FLOAT --input_arrays=input     --output_arrays=resnet_v2_152/predictions/Reshape_1   --input_shapes=1,224,224,3
======================================================
2017-12-07 21:53:10.782352: W tensorflow/contrib/lite/toco/toco_cmdline_flags.cc:177] --input_type is deprecated. Use --inference_input_type.  
2017-12-07 21:53:11.357279: I tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc:39] Before general graph transformations: 2003 operators, 2977 arrays (0 quantized)  
2017-12-07 21:53:11.745847: I tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc:39] After general graph transformations pass 1: 319 operators, 739 arrays (0 quantized)  
2017-12-07 21:53:11.749607: I tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc:39] Before dequantization graph transformations: 319 operators, 739 arrays (0 quantized)  
2017-12-07 21:53:11.751028: I tensorflow/contrib/lite/toco/allocate_transient_arrays.cc:312] Total transient array allocated size: 11239424 bytes, theoretical optimal value: 9633792 bytes.  
2017-12-07 21:53:11.752708: I tensorflow/contrib/lite/toco/toco_tooling.cc:264] Estimated count of arithmetic ops: 21.8689 billion (note that a multiply-add is counted as 2 ops).  
2017-12-07 21:53:11.753937: F tensorflow/contrib/lite/toco/tflite/export.cc:192] Unsupported operator: Pad  
Aborted (core dumped)
4

1 回答 1

0

PadTensorFlow Lite 尚不支持。该团队现在正在努力支持更多的操作(包括Pad)。希望它会在不久的将来工作。

请参阅此文档以查看当前的操作兼容性。

于 2017-12-07T23:48:20.173 回答