ATLAS Offline Software
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 
20  icf = AthConfigFlags()
21 
22  icf.addFlag("AthOnnx.ExecutionProvider", OnnxRuntimeType.CPU, type=OnnxRuntimeType)
23 
24  return icf
25 
26 if __name__ == "__main__":
27 
29  flags.dump()
python.OnnxRuntimeFlags.createOnnxRuntimeFlags
def createOnnxRuntimeFlags()
Definition: OnnxRuntimeFlags.py:19
python.OnnxRuntimeFlags.OnnxRuntimeType
Definition: OnnxRuntimeFlags.py:6