ATLAS Offline Software
Control
AthOnnx
AthOnnxComps
python
OnnxRuntimeFlags.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.AthConfigFlags
import
AthConfigFlags
4
from
AthenaConfiguration.Enums
import
FlagEnum
5
6
class
OnnxRuntimeType
(FlagEnum):
7
CPU =
'CPU'
8
CUDA =
'CUDA'
9
# possible future backends. Uncomment when implemented.
10
# DML = 'DML'
11
# DNNL = 'DNNL'
12
# NUPHAR = 'NUPHAR'
13
# OPENVINO = 'OPENVINO'
14
# ROCM = 'ROCM'
15
# TENSORRT = 'TENSORRT'
16
# VITISAI = 'VITISAI'
17
# VULKAN = 'VULKAN'
18
19
def
createOnnxRuntimeFlags
():
20
icf = AthConfigFlags()
21
22
icf.addFlag(
"AthOnnx.ExecutionProvider"
, OnnxRuntimeType.CPU, type=OnnxRuntimeType)
23
24
return
icf
25
26
if
__name__ ==
"__main__"
:
27
28
flags =
createOnnxRuntimeFlags
()
29
flags.dump()
python.OnnxRuntimeFlags.createOnnxRuntimeFlags
def createOnnxRuntimeFlags()
Definition:
OnnxRuntimeFlags.py:19
python.OnnxRuntimeFlags.OnnxRuntimeType
Definition:
OnnxRuntimeFlags.py:6
Generated on Sun Dec 22 2024 21:15:51 for ATLAS Offline Software by
1.8.18