Skip to content

Fix Range input rank in Attention op function definition#7240

Merged
yuanyao-nv merged 3 commits intoonnx:mainfrom
yuanyao-nv:dev-attention-function-range
Aug 19, 2025
Merged

Fix Range input rank in Attention op function definition#7240
yuanyao-nv merged 3 commits intoonnx:mainfrom
yuanyao-nv:dev-attention-function-range

Conversation

@yuanyao-nv
Copy link
Copy Markdown
Contributor

Description

In the Attentiion op definition, update the inputs to Range to be scalars as opposed to 1-element vectors, as required by the Range op spec.

Motivation and Context

See discussion here.

Signed-off-by: Yuan Yao <yuanyao@nvidia.com>
Comment thread onnx/defs/nn/defs.cc Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.33%. Comparing base (afaa6b8) to head (8c16992).
⚠️ Report is 127 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7240   +/-   ##
=======================================
  Coverage   54.33%   54.33%           
=======================================
  Files         511      511           
  Lines       31819    31819           
  Branches     2848     2848           
=======================================
  Hits        17290    17290           
  Misses      13753    13753           
  Partials      776      776           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Yuan Yao <yuanyao@nvidia.com>
Comment thread onnx/defs/nn/defs.cc Outdated
@github-project-automation github-project-automation Bot moved this from In progress to Reviewer approved in PR Tracker Aug 19, 2025
Signed-off-by: Yuan Yao <yuanyao@nvidia.com>
@yuanyao-nv yuanyao-nv merged commit 1961337 into onnx:main Aug 19, 2025
35 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in PR Tracker Aug 19, 2025
yuanyao-nv added a commit to yuanyao-nv/onnx that referenced this pull request Aug 19, 2025
### Description
In the Attentiion op definition, update the inputs to Range to be
scalars as opposed to 1-element vectors, as required by the Range op
spec.

### Motivation and Context
See discussion
[here](onnx#7164 (comment)).

---------

Signed-off-by: Yuan Yao <yuanyao@nvidia.com>
xadupre pushed a commit to xadupre/onnx that referenced this pull request Aug 31, 2025
### Description
In the Attentiion op definition, update the inputs to Range to be
scalars as opposed to 1-element vectors, as required by the Range op
spec.

### Motivation and Context
See discussion
[here](onnx#7164 (comment)).

---------

Signed-off-by: Yuan Yao <yuanyao@nvidia.com>
Signed-off-by: xadupre <xadupre@microsoft.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.

3 participants