Open
Description
Describe the issue
I have the following simple ONNX model with a single Abs node operating on BF16 tensor.
ir_version: 10
producer_name: ""
producer_version: ""
graph {
node {
input: "X"
output: "Y"
name: "Abs0"
op_type: "Abs"
}
name: "onnx_graphsurgeon_graph"
input {
name: "X"
type {
tensor_type {
elem_type: 16
shape {
dim {
dim_value: -1
}
dim {
dim_value: 4
}
dim {
dim_value: 5
}
}
}
}
}
output {
name: "Y"
type {
tensor_type {
elem_type: 16
}
}
}
}
opset_import {
domain: ""
version: 13
}
And onnxruntime 1.20.1 gives the following error
onnxruntime.capi.onnxruntime_pybind11_state.NotImplemented: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Could not find an implementation for Abs(13) node with name 'Abs0'
The same model with dtype changed to FP16 works.
To reproduce
I used onnx-graphsurgeon to create the model and polygraphy to run onnxruntime.
The polygraphy command I used was polygraphy run --onnxrt Abs_bf16.onnx
Urgency
No response
Platform
Linux
OS Version
Ubuntu 24.02
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.20.1
ONNX Runtime API
Python
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
Metadata
Metadata
Assignees
Labels
No labels