ONNX的一维卷积无法导入MXNet

这是一个ONNX格式的模型


但是绑定输入时报错,应该输入维度不能是三维的(1,2,72),那应该如何写呢?

mod = mx.mod.Module(symbol=sym, data_names=data_names, context=mx.cpu(), label_names=None)
mod.bind(for_training=False, data_shapes=[('0',(1, 2, 72))], label_shapes=None)

Traceback (most recent call last):
File “Gen_mxnet_model.py”, line 285, in
mod.bind(for_training=False, data_shapes=[(‘0’,(1, 2, 72))], label_shapes=None)
File “/Users/xzhou/anaconda3/envs/AI/lib/python3.7/site-packages/mxnet/module/module.py”, line 429, in bind
state_names=self._state_names)
File “/Users/xzhou/anaconda3/envs/AI/lib/python3.7/site-packages/mxnet/module/executor_group.py”, line 280, in init
self.bind_exec(data_shapes, label_shapes, shared_group)
File “/Users/xzhou/anaconda3/envs/AI/lib/python3.7/site-packages/mxnet/module/executor_group.py”, line 384, in bind_exec
shared_group))
File “/Users/xzhou/anaconda3/envs/AI/lib/python3.7/site-packages/mxnet/module/executor_group.py”, line 678, in _bind_ith_exec
shared_buffer=shared_data_arrays, **input_shapes)
File “/Users/xzhou/anaconda3/envs/AI/lib/python3.7/site-packages/mxnet/symbol/symbol.py”, line 1838, in simple_bind
raise RuntimeError(error_msg)
RuntimeError: simple_bind error. Arguments:
0: (1, 2, 72)
MXNetError: Error in operator pad0: [12:55:29] …/src/operator/./pad-inl.h:216: Current implementation only supports 4-D or 5-D input.