ATLAS Offline Software
Loading...
Searching...
No Matches
AthExOnnxRuntime_test_async_infer Namespace Reference

Functions

 AthExOnnxRuntimeExampleCfg (flags, name="AthOnnxExample", **kwargs)

Variables

 flags = initConfigFlags()
 ExecutionProvider
 NumThreads
 NumOffloadThreads
 FPE
 acc = MainServicesCfg(flags)
 withDetails
 True
 summariseProps

Function Documentation

◆ AthExOnnxRuntimeExampleCfg()

AthExOnnxRuntime_test_async_infer.AthExOnnxRuntimeExampleCfg ( flags,
name = "AthOnnxExample",
** kwargs )

Definition at line 10 of file AthExOnnxRuntime_test_async_infer.py.

10def AthExOnnxRuntimeExampleCfg(flags, name="AthOnnxExample", **kwargs):
11 acc = ComponentAccumulator()
12
13 model_fname = "dev/MLTest/2020-03-02/MNIST_testModel.onnx"
14 execution_provider = OnnxRuntimeType.CPU
15 kwargs.setdefault("ORTInferenceTool", acc.popToolsAndMerge(
16 OnnxRuntimeInferenceToolCfg(flags, model_fname, execution_provider)
17 ))
18
19 input_data = "dev/MLTest/2020-03-31/t10k-images-idx3-ubyte"
20 kwargs.setdefault("BatchSize", 100)
21 kwargs.setdefault("InputDataPixel", input_data)
22 kwargs.setdefault("OutputLevel", Constants.DEBUG)
23 acc.addEventAlgo(
24 CompFactory.AthOnnx.EvaluateModelWithAsyncInfer(name, **kwargs))
25
26 return acc
27
28

Variable Documentation

◆ acc

AthExOnnxRuntime_test_async_infer.acc = MainServicesCfg(flags)

Definition at line 43 of file AthExOnnxRuntime_test_async_infer.py.

◆ ExecutionProvider

AthExOnnxRuntime_test_async_infer.ExecutionProvider

Definition at line 37 of file AthExOnnxRuntime_test_async_infer.py.

◆ flags

AthExOnnxRuntime_test_async_infer.flags = initConfigFlags()

Definition at line 36 of file AthExOnnxRuntime_test_async_infer.py.

◆ FPE

AthExOnnxRuntime_test_async_infer.FPE

Definition at line 40 of file AthExOnnxRuntime_test_async_infer.py.

◆ NumOffloadThreads

AthExOnnxRuntime_test_async_infer.NumOffloadThreads

Definition at line 39 of file AthExOnnxRuntime_test_async_infer.py.

◆ NumThreads

AthExOnnxRuntime_test_async_infer.NumThreads

Definition at line 38 of file AthExOnnxRuntime_test_async_infer.py.

◆ summariseProps

AthExOnnxRuntime_test_async_infer.summariseProps

Definition at line 45 of file AthExOnnxRuntime_test_async_infer.py.

◆ True

AthExOnnxRuntime_test_async_infer.True

Definition at line 45 of file AthExOnnxRuntime_test_async_infer.py.

◆ withDetails

AthExOnnxRuntime_test_async_infer.withDetails

Definition at line 45 of file AthExOnnxRuntime_test_async_infer.py.