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

Method listdir

python/tvm/rpc/client.py:150–165  ·  view source on GitHub ↗

ls files from remote temp folder. Parameters ---------- path: str The relative location to remote temp folder. Returns ------- dirs: str The files in the given directory with split token ','.

(self, path)

Source from the content-addressed store, hash-verified

148 self._remote_funcs["remove"](path)
149
150 def listdir(self, path):
151 """ls files from remote temp folder.
152
153 Parameters
154 ----------
155 path: str
156 The relative location to remote temp folder.
157
158 Returns
159 -------
160 dirs: str
161 The files in the given directory with split token ','.
162 """
163 if "listdir" not in self._remote_funcs:
164 self._remote_funcs["listdir"] = self.get_function("tvm.rpc.server.listdir")
165 return self._remote_funcs["listdir"](path)
166
167 def load_module(self, path):
168 """Load a remote module, the file need to be uploaded first.

Callers 3

download_linked_moduleFunction · 0.45
load_moduleFunction · 0.45
build_test_setFunction · 0.45

Calls 1

get_functionMethod · 0.95

Tested by 1

build_test_setFunction · 0.36