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

Method finish

python/tvm/contrib/tvmjs.py:172–178  ·  view source on GitHub ↗

Finish building and return shard records.

(self)

Source from the content-addressed store, hash-verified

170 self.curr_records = []
171
172 def finish(self):
173 """Finish building and return shard records."""
174 self.commit()
175 for idx in self.updated_shards:
176 full_path = os.path.join(self.cache_dir, self.shard_records[idx]["dataPath"])
177 self.shard_records[idx]["md5sum"] = _calculate_md5(full_path)
178 return self.shard_records
179
180 def _commit_internal(self, data, records):
181 data_path = f"{self.prefix}_{self.counter}.bin"

Callers 8

dump_tensor_cacheFunction · 0.95
onClickMethod · 0.80
terminateMethod · 0.80
clearMethod · 0.80
drawMethod · 0.80
flushCommandsMethod · 0.80
deviceCopyFromGPUMethod · 0.80
deviceCopyWithinGPUMethod · 0.80

Calls 3

commitMethod · 0.95
_calculate_md5Function · 0.85
joinMethod · 0.45

Tested by

no test coverage detected