tvm icon indicating copy to clipboard operation
tvm copied to clipboard

[Bug][Relay] TVM generates input name that cannot be imported with the parser

Open mehrdadh opened this issue 2 years ago • 0 comments

I'm compiling an ONNX model which I realized the input name has this format input:0. When I import the model and run it, it works fine, however if I try to import the same Relay text with the parser it will result in error.

cc @gigiblender

mehrdadh avatar Aug 10 '22 16:08 mehrdadh

Can you write a simple pass that will change ("sanitize") the variable names? I don't know if a colon is treated in any special way by the parser, but you could try replacing them with underscores. I thought the parser did some sanitization of its own and am surprised that this still happens.

slyubomirsky avatar Aug 10 '22 21:08 slyubomirsky