Skip to content

[Feature request] Add BOOL support for ReduceMin/Max #5452

@justinchuby

Description

@justinchuby

System information

No response

What is the problem that this feature solves?

Currently to implement any and or we will have to convert BOOL inputs to int64 before reducing, then convert them back to BOOL after reduction. We can extend ReduceMin/ReduceMax to take BOOL inputs to avoid this conversion. Comparison will follow the usual False < True.

microsoft/onnxscript#932 (comment)

Alternatives considered

Create two new ops: ReduceAnd, ReduceOr

Describe the feature

No response

Will this influence the current api (Y/N)?

N

Feature Area

operators

Are you willing to contribute it (Y/N)

Yes

Notes

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions