Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add implementation for ScatterND #19540

Merged
merged 46 commits into from
Apr 24, 2024
Merged

Add implementation for ScatterND #19540

merged 46 commits into from
Apr 24, 2024

Conversation

xadupre
Copy link
Member

@xadupre xadupre commented Feb 16, 2024

Description

onnxruntime switches to CPU for ScatterND after opset 13. This extends the implementation of higher opsets.

opts = SessionOptions()
opts.optimized_model_filepath = filename
sess = InferenceSession(model.SerializeToString(), opts, providers=providers)
self.assertTrue(sess is not None)

Check notice

Code scanning / CodeQL

Imprecise assert Note test

assertTrue(a is not b) cannot provide an informative message. Using assertIsNot(a, b) instead will give more informative messages.
from onnx.numpy_helper import from_array
from onnx.reference import ReferenceEvaluator

import onnxruntime

Check notice

Code scanning / CodeQL

Module is imported with 'import' and 'import from' Note test

Module 'onnxruntime' is imported with both 'import' and 'import from'.
@xadupre xadupre requested a review from yuslepukhin April 22, 2024 17:39
@xadupre xadupre merged commit 80213a9 into microsoft:main Apr 24, 2024
92 of 93 checks passed
TedThemistokleous pushed a commit to TedThemistokleous/onnxruntime that referenced this pull request May 7, 2024
### Description
onnxruntime switches to CPU for ScatterND after opset 13. This extends
the implementation of higher opsets.
@xadupre xadupre deleted the f16 branch June 17, 2024 11:07
@xadupre xadupre self-assigned this Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core runtime issues related to core runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants