Skip to content

Fix return type of HardSigmoid in reference implementation#7168

Merged
justinchuby merged 1 commit intoonnx:mainfrom
konstantin-pueckler-qc:fix_hardsigmoid
Jul 24, 2025
Merged

Fix return type of HardSigmoid in reference implementation#7168
justinchuby merged 1 commit intoonnx:mainfrom
konstantin-pueckler-qc:fix_hardsigmoid

Conversation

@konstantin-pueckler-qc
Copy link
Copy Markdown
Contributor

@konstantin-pueckler-qc konstantin-pueckler-qc commented Jul 24, 2025

Description

added cast of result to x.dtype which is necessary since the result needs to be of the same type as x regardless of the types ofalpha and beta.

Motivation and Context

The problem arouse when testing onnx-reference via the https://github.com/cbourjau/onnx-tests tool.

@konstantin-pueckler-qc konstantin-pueckler-qc requested a review from a team as a code owner July 24, 2025 13:27
@github-project-automation github-project-automation Bot moved this to In progress in PR Tracker Jul 24, 2025
Signed-off-by: Konstantin Pueckler <konstantin.pueckler@quantco.com>
@justinchuby justinchuby changed the title Fixed return type of hardSigmoid Fix return type of HardSigmoid in reference implementation Jul 24, 2025
@github-project-automation github-project-automation Bot moved this from In progress to Reviewer approved in PR Tracker Jul 24, 2025
@justinchuby justinchuby enabled auto-merge (squash) July 24, 2025 15:17
@justinchuby justinchuby merged commit 567ebd8 into onnx:main Jul 24, 2025
60 of 65 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in PR Tracker Jul 24, 2025
alx256 pushed a commit to alx256/onnx that referenced this pull request Aug 1, 2025
### Description
added cast of result to ``x.dtype`` which is necessary since the result
needs to be of the same type as ``x`` regardless of the types
of``alpha`` and ``beta``.

### Motivation and Context
The problem arouse when testing onnx-reference via the
https://github.com/cbourjau/onnx-tests tool.

Signed-off-by: Konstantin Pueckler <konstantin.pueckler@quantco.com>
Signed-off-by: Alexander Poulson <alexanderipoulson@gmail.com>
MagellaX pushed a commit to MagellaX/onnx that referenced this pull request Aug 9, 2025
### Description
added cast of result to ``x.dtype`` which is necessary since the result
needs to be of the same type as ``x`` regardless of the types
of``alpha`` and ``beta``.

### Motivation and Context
The problem arouse when testing onnx-reference via the
https://github.com/cbourjau/onnx-tests tool.

Signed-off-by: Konstantin Pueckler <konstantin.pueckler@quantco.com>
Signed-off-by: Yash solanki <alphacr792@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants