Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

how to build onnxruntime with latest version of onnx #20615

Closed
ZchiPitt opened this issue May 9, 2024 · 1 comment
Closed

how to build onnxruntime with latest version of onnx #20615

ZchiPitt opened this issue May 9, 2024 · 1 comment
Labels
platform:windows issues related to the Windows platform

Comments

@ZchiPitt
Copy link

ZchiPitt commented May 9, 2024

Describe the issue

we have a need to run bf16 model in ort, while onnx just added support for bf16 for many ops in Opset22 (onnx/onnx@4e7289d)

What is the best way to build the ORT with the latest onnx version? We tried by following https://github.com/microsoft/onnxruntime/blob/main/docs/How_To_Update_ONNX_Dev_Notes.md.

However we are still hitting the errors:
INVALID_GRAPH : Load model from down.onnx failed:This is an invalid model. In Node, ("/block/resnets.0/norm1/Reshape", Reshape, "", -1) : ("sample_in": tensor(bfloat16),"/block/resnets.0/norm1/Constant_output_0": tensor(int64),) -> ("/block/resnets.0/norm1/Reshape_output_0": tensor(bfloat16),) , Error No Op registered for Reshape with domain_version of 22

To reproduce

NA

Urgency

No response

Platform

Windows

OS Version

11

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

a0db218

ONNX Runtime API

Python

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

@github-actions github-actions bot added the platform:windows issues related to the Windows platform label May 9, 2024
@snnn
Copy link
Member

snnn commented May 9, 2024

See what change was added in #19745 for reshape. You need to do something similar for the new opset 22.

@snnn snnn closed this as completed May 9, 2024
@microsoft microsoft locked and limited conversation to collaborators May 9, 2024
@snnn snnn converted this issue into discussion #20629 May 9, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
platform:windows issues related to the Windows platform
Projects
None yet
Development

No branches or pull requests

2 participants