don't support torch.tensor.expand?
Created by: chenjun2hao
when i use pytorch torch.tensor.expand, the error
Traceback (most recent call last):
File "/root/miniconda3/envs/torch120/bin/onnx_infer", line 11, in <module>
load_entry_point('x2paddle==0.5.0', 'console_scripts', 'onnx_infer')()
File "/root/miniconda3/envs/torch120/lib/python3.6/site-packages/x2paddle-0.5.0-py3.6.egg/x2paddle/onnx_infer.py", line 48, in main
res = sess.run(None, input_feed=inputs_dict)
File "/root/miniconda3/envs/torch120/lib/python3.6/site-packages/onnxruntime/capi/session.py", line 72, in run
return self._sess.run(output_names, input_feed, run_options)
RuntimeError: Method run failed due to: [ONNXRuntimeError] : 1 : GENERAL ERROR : /onnxruntime_src/onnxruntime/core/providers/cpu/math/element_wise_ops.h:341 void onnxruntime::BroadcastIterator::Init(int64_t, int64_t) axis == 1 || axis == largest was false. Attempting to broadcast an axis by a dimension other than 1. -1 by 264
Stacktrace:
There are 1 ops not supported yet, list as below
Expand
Traceback (most recent call last):
File "/root/miniconda3/envs/torch120/bin/x2paddle", line 11, in <module>
load_entry_point('x2paddle==0.5.0', 'console_scripts', 'x2paddle')()
File "/root/miniconda3/envs/torch120/lib/python3.6/site-packages/x2paddle-0.5.0-py3.6.egg/x2paddle/convert.py", line 211, in main
onnx2paddle(args.model, args.save_dir)
File "/root/miniconda3/envs/torch120/lib/python3.6/site-packages/x2paddle-0.5.0-py3.6.egg/x2paddle/convert.py", line 157, in onnx2paddle
mapper = ONNXOpMapper(model, save_dir)
File "/root/miniconda3/envs/torch120/lib/python3.6/site-packages/x2paddle-0.5.0-py3.6.egg/x2paddle/op_mapper/onnx_op_mapper.py", line 68, in __init__
raise Exception("Model are not supported yet.")
Exception: Model are not supported yet.
it seems don't support expand?