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

Type Error: Type 'tensor(int64)' of input parameter (relative_position) of operator (Min) in node (Min_2286) is invalid. #15167

Open
vtfghs opened this issue Mar 23, 2023 · 1 comment

Comments

@vtfghs
Copy link

vtfghs commented Mar 23, 2023

Describe the issue

When I tried to convert the model to onnx using torch, the above error occurred. How to fix it?

To reproduce

onnxruntime.capi.onnxruntime_pybind11_state.InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : Load model failed:This is an invalid model.

Urgency

No response

Platform

Windows

OS Version

10

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.10.0

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 Mar 23, 2023
@wangyems wangyems removed the platform:windows issues related to the Windows platform label Mar 23, 2023
@wangyems
Copy link
Member

int64 was supported since opset 12. Please consider using opset >= 12.
https://github.com/microsoft/onnxruntime/blob/main/docs/OperatorKernels.md#cpuexecutionprovider

Meanwhile the most recent ORT release is 1.14.1. Is it possible to upgrade the ORT version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants