onnxruntime/include/onnxruntime/core/providers
pengwa ae92d593c0
ONNX Gelu Op in Opset 20 (#19560)
### ONNX Gelu Op in Opset 20

Refactor code to support MSDomain Gelu and ONNX Gelu-opset20 Op

1. Move CPU-GELU implmentation from
`onnxruntime/contrib_ops/cpu/activations.h/cc` to
`onnxruntime/core/providers/cpu/tensor/gelu.h/cc`, as the implementation
for approximate attribute to be 'none'.
2. Dumplicate some logic from
`onnxruntime/contrib_ops/cpu/bert/bias_gelu.cc` to
`onnxruntime/core/providers/cpu/tensor/gelu.h/cc`, as the implementation
for approximate attribute to be 'tanh'.
3. Register ONNX domain Gelu CPU kernel from opset 20 in
`onnxruntime/core/providers/cpu/cpu_execution_provider.cc`.
4. Move `onnxruntime/contrib_ops/cuda/bert/fast_gelu_impl.h/cu` to
`onnxruntime/core/providers/cuda/tensor/gelu_impl.h` and
`onnxruntime/core/providers/cuda/tensor/gelu_approximate_impl.cu`
respectively, as the implementation for approximate attribute to be
'tanh'.
5. Implement the logic for approximate attribute to be 'none' in
`onnxruntime/core/providers/cuda/tensor/gelu_impl.cu`.
6. Register ONNX domain Gelu CUDA kernel from opset 20 in
`onnxruntime/core/providers/cuda/cuda_execution_provider.cc`.
7. ROCM ep related changes. 
8. Enrich the tests for ONNX domain Gelu in
`onnxruntime/test/providers/cpu/activation/activation_op_test.cc`.
2024-02-23 11:05:16 +08:00
..
acl
armnn
cann
coreml Add initial support for CoreML ML Program to the CoreML EP. (#19347) 2024-02-15 08:46:03 +10:00
cpu
cuda ONNX Gelu Op in Opset 20 (#19560) 2024-02-23 11:05:16 +08:00
dml Hide NPU Adapter selection behind macro (#18515) 2023-11-21 08:47:56 -08:00
dnnl
nnapi
openvino Openvino ep ort 5.0 (#15626) 2023-04-25 20:59:42 -07:00
rknpu
rocm Align context virtuals (#18396) 2023-11-11 12:41:37 +10:00
tensorrt [TensorRT EP] Enhance EP context configs in session options and provider options (#19154) 2024-01-21 10:51:58 -08:00
tvm
winml
custom_op_context.h Add cuda context headers to zip (#18330) 2023-11-09 14:53:58 -08:00
providers.h
resource.h EP context for custom op (#16454) 2023-08-16 13:03:40 -07:00