[Runtime][AOTExecutor] set_input does not show error if input name does not exist in the model #13013
Labels
executor:aot
runtime components of AOT flow. src/runtime/aot_executor, src/runtime/crt/aot_executor
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
type: bug
If we pass input dictionary with incorrect input name, aot executor would execute
set_input
function without actually setting the correct input or showing error that input name doesn't exist in the model. This will result in silently outputting the incorrect output from the model. I think it should show an error when the input name doesn't exist.I found this error when I working on a model which had input name of
input:0
which is not acceptable in Relay. However, when I tested it I realized it's not just this name, if you pass any name for the input the AOTExecutor would accept it.cc @areusch @alanmacd
The text was updated successfully, but these errors were encountered: