ATLAS Offline Software
Loading...
Searching...
No Matches
OnnxRuntimeFlags.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.AthConfigFlags import AthConfigFlags
4from AthenaConfiguration.Enums import FlagEnum
5
6class 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
26if __name__ == "__main__":
27
29 flags.dump()