MCPcopy Create free account
hub / github.com/apache/tvm / test_benchmark_result

Function test_benchmark_result

tests/python/runtime/test_runtime_measure.py:60–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59
60def test_benchmark_result():
61 r = BenchmarkResult([1, 2, 2, 5])
62 assert r.mean == 2.5
63 assert r.median == 2.0
64 assert r.min == 1
65 assert r.max == 5
66 assert r.std == 1.5
67
68
69if __name__ == "__main__":

Callers 1

Calls 1

BenchmarkResultClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…