Skip to content

Strict Input Output Tensor Validation #27986

@abhaychirania2411

Description

@abhaychirania2411

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions