作者:强子 | 来源:互联网 | 2023-09-25 19:16
Platform (like ubuntu 16.04/win10): Ubuntu 16.04
Python version: Python 3.5.5
Source framework with version (like Tensorflow 1.4.1 with GPU): Tensorflow 1.10.1 with GPU
Destination framework with version (like CNTK 2.3 with GPU): Caffe2 with CPU / Pytorch 0.4.1 with GPU
Pre-trained model path (webpath or webdisk path): No web path. It is a pre-trained cnn model in tensorflow
Error:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| #:$ mmconvert -sf tensorflow -in cnn_tree.ckpt-51243.meta -iw cnn_tree.ckpt-51243 --dstNodeName output/Softmax -df pytorch -om tf2pytorch
/anaconda/envs/py35/lib/python3.5/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Parse file [cnn_tree.ckpt-51243.meta] with binary format successfully.
Tensorflow model file [cnn_tree.ckpt-51243.meta] loaded successfully.
Tensorflow checkpoint file [cnn_tree.ckpt-51243] loaded successfully. [21] variables loaded.
Tensorflow has not supported operator [Cast] with name [network/conv_layer/conv_node/conv_step/coefficients/coef_r/Cast].
Tensorflow has not supported operator [Cast] with name [network/conv_layer/conv_node/conv_step/coefficients/coef_l/Cast].
Tensorflow has not supported operator [Less] with name [network/conv_layer/conv_node/conv_step/combine/Tensordot/Less].
Tensorflow has not supported operator [ExpandDims] with name [network/conv_layer/conv_node/conv_step/trees/children_tensor/ExpandDims].
Tensorflow has not supported operator [ExpandDims] with name [network/conv_layer/conv_node/conv_step/trees/ExpandDims].
Tensorflow has not supported operator [GreaterEqual] with name [network/conv_layer/conv_node/conv_step/combine/Tensordot/GreaterEqual].
Tensorflow has not supported operator [Range] with name [network/conv_layer/conv_node/conv_step/combine/Tensordot/range].
Tensorflow has not supported operator [NotEqual] with name [network/conv_layer/conv_node/conv_step/coefficients/coef_r/count_nonzero/NotEqual].
Tensorflow has not supported operator [Cast] with name [network/conv_layer/conv_node/conv_step/combine/Tensordot/Cast_1].
Tensorflow has not supported operator [Cast] with name [network/conv_layer/conv_node/conv_step/combine/Tensordot/Cast].
Tensorflow has not supported operator [Cast] with name [network/conv_layer/conv_node/conv_step/coefficients/coef_r/count_nonzero/ToInt64].
Tensorflow has not supported operator [Fill] with name [network/conv_layer/conv_node/conv_step/coefficients/coef_r/ones].
Tensorflow has not supported operator [Fill] with name [network/conv_layer/conv_node/conv_step/coefficients/coef_l/ones].
Traceback (most recent call last):
File "/home/ccrmad/.local/bin/mmconvert", line 11, in
sys.exit(_main())
File "/home/ccrmad/.local/lib/python3.5/site-packages/mmdnn/conversion/_script/convert.py", line 102, in _main
ret = convertToIR._convert(ir_args)
File "/home/ccrmad/.local/lib/python3.5/site-packages/mmdnn/conversion/_script/convertToIR.py", line 115, in _convert
parser.run(args.dstPath)
File "/home/ccrmad/.local/lib/python3.5/site-packages/mmdnn/conversion/common/DataStructure/parser.py", line 22, in run
self.gen_IR()
File "/home/ccrmad/.local/lib/python3.5/site-packages/mmdnn/conversion/tensorflow/tensorflow_parser.py", line 309, in gen_IR
func(current_node)
File "/home/ccrmad/.local/lib/python3.5/site-packages/mmdnn/conversion/tensorflow/tensorflow_parser.py", line 703, in rename_Mul
shape = shape[-1]
IndexError: list index out of range
|
There are a lot of
s, and thus the reason the failure?
该提问来源于开源项目:microsoft/MMdnn
hi, i got the same err, did you solve the problem ?