Skip to content

winml analyze --device requires uppercase (NPU/GPU/CPU) inconsistent with other commands #215

@DingmaomaoBJTU

Description

@DingmaomaoBJTU

Description

winml analyze --device only accepts uppercase values (NPU, GPU, CPU). All other commands (winml perf, winml compile, winml config, etc.) accept lowercase (npu, gpu, cpu). This inconsistency causes confusing errors when users follow the same flag pattern across commands.

Repro

winml analyze --model model.onnx --ep qnn --device npu

Error

Error: Invalid value for '--device': 'npu' is not one of 'CPU', 'GPU', 'NPU'.

Expected

--device npu (lowercase) should be accepted, consistent with all other winml commands.

Workaround

Use uppercase: --device NPU

Environment

  • OS: Windows 11
  • winml-modelkit: 0.0.1.dev1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions