2017-12-07 3 views
-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) 

Antwort

0

Pad wird von TensorFlow Lite noch nicht unterstützt. Das Team arbeitet nun daran, weitere Ops (einschließlich Pad) zu unterstützen. Hoffentlich wird es in naher Zukunft funktionieren.

Bitte beachten Sie this doc, um die aktuelle ops Kompatibilität zu sehen.