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
Description
winml analyze --deviceonly 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
Error
Expected
--device npu(lowercase) should be accepted, consistent with all otherwinmlcommands.Workaround
Use uppercase:
--device NPUEnvironment