tensorflow培训后量化支持的操作列表

tensorflow培训后量化支持的操作列表,tensorflow,tensorflow-lite,Tensorflow,Tensorflow Lite,我希望按照tensorflow lite的协会压缩/优化我的tensorflow NN模型,我使用的是tensorflow 1.13.1(非GPU) 然而,当我使用convert函数时,我遇到了很多错误消息: ConverterError: TOCO failed. See console for info. 2019-05-02 11:31:10.209374: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsup

我希望按照tensorflow lite的协会压缩/优化我的tensorflow NN模型,我使用的是tensorflow 1.13.1(非GPU)

然而,当我使用convert函数时,我遇到了很多错误消息:

ConverterError: TOCO failed. See console for info.
2019-05-02 11:31:10.209374: I tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: TensorArrayV3
2019-05-02 11:31:10.217858: I  tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 20
2019-05-02 11:31:10.217893: I  tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: TensorArrayV3
2019-05-02 11:31:10.217905: I  tensorflow/lite/toco/import_tensorflow.cc:193] Unsupported data type in placeholder op: 20
2019-05-02 11:31:10.217939: I  tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: TensorArrayScatterV3
2019-05-02 11:31:10.217961: I  tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: Enter
2019-05-02 11:31:10.217971: I  tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: Enter
2019-05-02 11:31:10.217979: I  tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: Enter
2019-05-02 11:31:10.217988: I  tensorflow/lite/toco/import_tensorflow.cc:1324] Converting unsupported operation: Enter
......
2019-05-02 11:31:10.223877: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before Removing unused ops: 236 operators, 384 arrays (0 quantized)
2019-05-02 11:31:10.226115: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After Removing unused ops pass 1: 226 operators, 368 arrays (0 quantized)
2019-05-02 11:31:10.229770: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before general graph transformations: 226 operators, 368 arrays (0 quantized)
2019-05-02 11:31:10.232686: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] After general graph transformations pass 1: 177 operators, 280 arrays (0 quantized)
2019-05-02 11:31:10.235370: I tensorflow/lite/toco/graph_transformations/graph_transformations.cc:39] Before dequantization graph transformations: 177 operators, 280 arrays (0 quantized)
2019-05-02 11:31:10.237009: F tensorflow/lite/toco/tooling_util.cc:627] Check failed: dim >= 1 (0 vs. 1)
Aborted (core dumped)
谷歌搜索了一下,这似乎是因为TFLite并不支持所有的tensorflow操作。我的模型具有定制的操作,如注意力、biLSTM等

我如何知道支持哪些NN体系结构?对于我收到的错误,我如何知道问题的根源在哪里?e、 g

Unsupported data type in placeholder op: 20

这20指的是什么?

问题的根源在于ConvertDataType()函数

不支持的数据类型20

DT_资源=20