microsoft / microsoft/onnxruntime

[Feature Request] Where op for bool input

Open
#24,127 4 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 11h
Merged PRs (30d)
184

Description

### Describe the feature request

support where op with bool inputs

### Describe scenario use case

For where op, there is a situation that the X/Y/output is bool type. We try to infer model with this where op, and got an error, which claims that where(9) NOT_IMPLEMNTED. We revise the code and add the declare of bool type where, test the wheel with python. Please support where op with bool inputs in version 1.15.1 +

Contributor guide

Open the contributing guide

Research direction

Start by locating the where operator implementation and its handling of bool X, Y, and output types; reproduce the reported where(9) NOT_IMPLEMENTED error with a bool-input model. Done means bool inputs are supported and the behavior can be validated by testing the resulting Python wheel.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
backend, machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.