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

Method relpath

python/tvm/support/utils.py:155–168  ·  view source on GitHub ↗

Relative path in temp dir Parameters ---------- name : str The name of the file. Returns ------- path : str The concatenated path.

(self, name)

Source from the content-addressed store, hash-verified

153 self.remove()
154
155 def relpath(self, name):
156 """Relative path in temp dir
157
158 Parameters
159 ----------
160 name : str
161 The name of the file.
162
163 Returns
164 -------
165 path : str
166 The concatenated path.
167 """
168 return os.path.join(self.temp_dir, name)
169
170 def listdir(self):
171 """List contents in the dir.

Callers 15

find_example_resourceFunction · 0.80
_popen_sessionFunction · 0.80
get_workpathFunction · 0.80
load_moduleFunction · 0.80
download_linked_moduleFunction · 0.80
jitMethod · 0.80
load_moduleFunction · 0.80
compile_metalFunction · 0.80
callback_rocm_linkFunction · 0.80
create_staticlibFunction · 0.80
tarFunction · 0.80

Calls 1

joinMethod · 0.45

Tested by 15

test_rpc_moduleFunction · 0.64
test_rpc_moduleFunction · 0.64
check_roundtripFunction · 0.64
test_multi_systemlibFunction · 0.64
make_vmFunction · 0.64
run_on_rpcFunction · 0.64
load_moduleFunction · 0.64
verify_rpcFunction · 0.64
check_minrpcFunction · 0.64
check_remoteFunction · 0.64