ATLAS Offline Software
Loading...
Searching...
No Matches
OnnxRuntimeSvcConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def OnnxRuntimeSvcCfg(flags, name="OnnxRuntimeSvc", **kwargs):
7 acc = ComponentAccumulator()
8
9 acc.addService(CompFactory.AthOnnx.OnnxRuntimeSvc(name, **kwargs), primary=True, create=True)
10
11 return acc
OnnxRuntimeSvcCfg(flags, name="OnnxRuntimeSvc", **kwargs)