def METHOD_NAME(ctx, backend, networks, large_ops, tc_autotune, tc_cachedir, tc_at_generations,
        tc_at_population, tvm_driver, cuda_profile):
    """Benchmarks compiled tensor kernels."""
    tc_cachedir = os.path.expanduser(tc_cachedir)
    runner = ctx.ensure_object(core.Runner)
    frontend = Frontend(
        backend, OPS if large_ops else MS_OPS, {
            'tc_autotune': tc_autotune,
            'tc_cachedir': tc_cachedir,
            'tc_at_generations': tc_at_generations,
            'tc_at_population': tc_at_population,
            'cuda_profile': cuda_profile,
            'tvm_driver': str(tvm_driver)
        })
    return runner.run(frontend, backend, networks)