Problem: ValidateInputsOutputs in Run() enforces strict type/shape matching, which might break some custom EPs that transform tensors before/after execution. These EPs might not expect inputs or output tensors to be same as described by the model due to multiple reasons including hardware optimization, EP limitations etc.
Solution: Two SessionOptions config keys (session.disable_input_validation, session.disable_output_validation) that skip the respective validation calls in Run().
Problem: ValidateInputsOutputs in Run() enforces strict type/shape matching, which might break some custom EPs that transform tensors before/after execution. These EPs might not expect inputs or output tensors to be same as described by the model due to multiple reasons including hardware optimization, EP limitations etc.
Solution: Two SessionOptions config keys (session.disable_input_validation, session.disable_output_validation) that skip the respective validation calls in Run().