Skip to content

[miopen-provider]: Add integration tests to verify Batchnorm rejects unsupported layouts #3989

@bghimireamd

Description

@bghimireamd

Suggestion Description

Add integration tests in plugins/miopen_legacy_plugin/integration_tests/ to verify MIOpen plugin gracefully rejects invalid tensor layouts.

Test Cases:

  1. 3D tensors → graph.build() returns error (miopen batch norm only supports 4D and 5D tensors)
  2. Mixed layouts (X=NCHW, Y=NHWC) → rejected
  3. Non-standard stride order (e.g., {0,1,2,3}) → rejected

Acceptance Criteria:

  • result.code != ErrorCode::OK
  • No crashes or undefined behavior
  • Error message mentions layout issue
  • Tests follow naming convention: IntegrationGpuBatchnormUnhappyLayouts
  • Tests added to plugins/miopen_legacy_plugin/integration_tests/

Reference: See getValidateSupportedLayoutTestCases() in unit tests

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions