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)
| 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. |