MCPcopy
hub / github.com/apache/tvm / processShard

Function processShard

web/src/artifact_cache.ts:912–915  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

910 const list = await artifactCache.fetchWithCache(jsonUrl, "json");
911 const arrayentry = list["records"] as Array<TensorShardEntry>;
912 const processShard = async (i: number) => {
913 const dataUrl = new URL(arrayentry[i].dataPath, cacheUrl).href;
914 await artifactCache.deleteInCache(dataUrl);
915 }
916 await Promise.all(arrayentry.map((_, index) => processShard(index)));
917}

Callers 1

deleteTensorCacheFunction · 0.85

Calls 1

deleteInCacheMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…