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 (16586) of operator (Clip) in node (Clip_13292) is invalid. #20674

Open
lix19937 opened this issue May 14, 2024 · 4 comments

Comments

@lix19937
Copy link

Describe the issue

Use ort to infer, then raise error:

Type Error: Type 'tensor(int64)' of input parameter (16586) of operator (Clip) in node (Clip_13292) is invalid.

To reproduce

onnx                      1.15.0
onnx-graphsurgeon         0.3.21
onnx-simplifier           0.4.36
onnxruntime               1.17.1

Urgency

No response

Platform

Linux

OS Version

ubuntu20.04

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1.15.0

ONNX Runtime API

Python

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

@lix19937
Copy link
Author

onnxruntime not support torch.clamp ?

@lix19937
Copy link
Author

@edgchen1
Copy link
Contributor

Clip should be supported with int64 input.
https://github.com/microsoft/onnxruntime/blob/v1.17.1/docs/OperatorKernels.md#cpuexecutionprovider

What ONNX opset version is the model using?

@lix19937
Copy link
Author

What ONNX opset version is the model using?

opset_version in torch.onnx.export is 11, when I update to 13, no error.

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