MCPcopy Index your code
hub / github.com/apache/tvm / load_module

Method load_module

tests/python/relax/backend/adreno/utils.py:100–113  ·  view source on GitHub ↗
(self, ex: relax.VMExecutable)

Source from the content-addressed store, hash-verified

98 self.rpc.get_function("CloseRPCConnection")()
99
100 def load_module(self, ex: relax.VMExecutable):
101 with tempfile.TemporaryDirectory() as tempdir:
102 file_name = "vm_library.so"
103 file_path = os.path.join(tempdir, file_name)
104 if self.is_remote:
105 ex.export_library(
106 file_path, fcompile=ndk.create_shared, options=["-shared", "-fPIC", "-lm"]
107 )
108 else:
109 ex.export_library(file_path)
110
111 self.rpc.upload(file_path)
112 rexec = self.rpc.load_module(file_name)
113 return rexec
114
115 def device(self, device: str):
116 return self.rpc.device(device)

Callers 15

compilingFunction · 0.45
check_roundtripFunction · 0.45
make_vmFunction · 0.45
check_remoteFunction · 0.45
load_moduleFunction · 0.45
build_and_runFunction · 0.45
test_texture_copyFunction · 0.45
_runFunction · 0.45
verify_rpcFunction · 0.45
check_remoteFunction · 0.45

Calls 3

joinMethod · 0.45
export_libraryMethod · 0.45
uploadMethod · 0.45

Tested by 15

compilingFunction · 0.36
check_roundtripFunction · 0.36
make_vmFunction · 0.36
check_remoteFunction · 0.36
load_moduleFunction · 0.36
test_texture_copyFunction · 0.36
verify_rpcFunction · 0.36
check_remoteFunction · 0.36
check_remote_link_clFunction · 0.36