def METHOD_NAME(mod, target, simplify=True, with_bnns=False):
    with tvm.transform.PassContext(opt_level=3):
        if simplify:
            mod = simplify_model(mod)
        if with_bnns:
            mod = partition_for_bnns(mod)
        graph_module = relay.build(mod, target=target, params=params)
    lib_name = "deploy.tar"
    path_dso = temp.relpath(lib_name)
    graph_module.export_library(path_dso)
    dev = tvm.cpu(0)
    loaded_lib = tvm.runtime.load_module(path_dso)
    module = graph_executor.GraphModule(loaded_lib["default"](dev))
    module.METHOD_NAME()
    return module.get_output(0).numpy()