MCPcopy Create free account
hub / github.com/OpenMined/SyMPC / test_run_inference_conv_model

Function test_run_inference_conv_model

benchmarks/module/module_benchmark_test.py:12–20  ·  view source on GitHub ↗

Benchmark inference on simple convolutional network. Arguments: benchmark: Fixture that benchmarks any function passed get_clients: Fixture that returns a list of clients

(benchmark, get_clients: Callable[[int], List[Any]])

Source from the content-addressed store, hash-verified

10
11
12def test_run_inference_conv_model(benchmark, get_clients: Callable[[int], List[Any]]):
13 """Benchmark inference on simple convolutional network.
14
15 Arguments:
16 benchmark: Fixture that benchmarks any function passed
17 get_clients: Fixture that returns a list of clients
18 """
19 expected, mpc_model, x_mpc = set_up_model(get_clients)
20 benchmark(run_inference_conv_model, expected, mpc_model, x_mpc)

Callers

nothing calls this directly

Calls 1

set_up_modelFunction · 0.90

Tested by

no test coverage detected