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

Method evaluator

python/tvm/runtime/module.py:411–417  ·  view source on GitHub ↗

Internal wrapped evaluator.

(*args)

Source from the content-addressed store, hash-verified

409 )
410
411 def evaluator(*args):
412 """Internal wrapped evaluator."""
413 # Wrap feval so we can add more stats in future.
414 blob = feval(*args)
415 fmt = "@" + ("d" * repeat)
416 results = struct.unpack(fmt, blob)
417 return BenchmarkResult(results)
418
419 return evaluator
420 except NameError:

Callers

nothing calls this directly

Calls 2

BenchmarkResultClass · 0.85
unpackMethod · 0.80

Tested by

no test coverage detected