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

Method download

python/tvm/rpc/client.py:121–136  ·  view source on GitHub ↗

Download file from remote temp folder. Parameters ---------- path : str The relative location to remote temp folder. Returns ------- blob : bytearray The result blob from the file.

(self, path)

Source from the content-addressed store, hash-verified

119 self._remote_funcs["upload"](target, blob)
120
121 def download(self, path):
122 """Download file from remote temp folder.
123
124 Parameters
125 ----------
126 path : str
127 The relative location to remote temp folder.
128
129 Returns
130 -------
131 blob : bytearray
132 The result blob from the file.
133 """
134 if "download" not in self._remote_funcs:
135 self._remote_funcs["download"] = self.get_function("tvm.rpc.server.download")
136 return self._remote_funcs["download"](path)
137
138 def remove(self, path):
139 """Remove file from remote temp folder.

Callers 1

check_remoteFunction · 0.45

Calls 1

get_functionMethod · 0.95

Tested by 1

check_remoteFunction · 0.36