microsoft/nnfusion

[BUG] Exception: Unknown symbilic dimension: seq_length

Binyang2014 opened this issue · 1 comments

File "/home/binyangli/nnfusion/build/src/tools/nnfusion/templates/onnx/ort_run_frozen.py", line 109, in
ort_inputs.update({tensor.name: get_numpy(tensor)})
File "/home/binyangli/nnfusion/build/src/tools/nnfusion/templates/onnx/ort_run_frozen.py", line 73, in get_numpy
check_shape(shape)
File "/home/binyangli/nnfusion/build/src/tools/nnfusion/templates/onnx/ort_run_frozen.py", line 67, in check_shape
raise Exception(f"Unknown symbilic dimension: {dim}")
Exception: Unknown symbilic dimension: seq_length

jlxue commented

you can use -prams to specify missing dims.
-params (-p, Model input shape and type, fot torchscript, it's full shape like "1,1:float;2,3,4,5:double", for onnx, it's dynamic dim like "dim1_name:4;dim2_name:128")