-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
ep:VitisAIissues related to Vitis AI execution providerissues related to Vitis AI execution provider
Description
Describe the issue
We implemented VitisAI custom ops' that support all tensor types by returning ONNX_TENSOR_ELEMENT_DATA_TYPE_UNDEFINED when GetInputType() is called. But if the input contains int4 tensor it would fail here.
onnxruntime/onnxruntime/core/graph/graph.cc
Lines 2847 to 2852 in 2d05c4b
| Status status(ONNXRUNTIME, INVALID_GRAPH, | |
| "This is an invalid model. " | |
| "Type Error: Type '" + | |
| *input_type + "' of input parameter (" + input_def->Name() + | |
| ") of operator (" + op.Name() + ") in node (" + node_name + ") is invalid."); | |
| return status; |
#23204 should fix this issue.
To reproduce
Create a custom op that return ONNX_TENSOR_ELEMENT_DATA_TYPE_UNDEFINED when GetInputType() is called and add an input tensor of int4.
Urgency
No response
Platform
Windows
OS Version
Windows 11
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
main
ONNX Runtime API
C++
Architecture
X64
Execution Provider
Vitis AI
Execution Provider Library Version
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ep:VitisAIissues related to Vitis AI execution providerissues related to Vitis AI execution provider