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

Function normalizeCacheAccessOptions

web/src/artifact_cache.ts:801–812  ·  view source on GitHub ↗
(
  cacheScopeOrOptions: string | TensorCacheAccessOptions | undefined,
  cacheType?: string,
)

Source from the content-addressed store, hash-verified

799}
800
801function normalizeCacheAccessOptions(
802 cacheScopeOrOptions: string | TensorCacheAccessOptions | undefined,
803 cacheType?: string,
804): TensorCacheAccessOptions {
805 if (isTensorCacheAccessOptions(cacheScopeOrOptions)) {
806 return cacheScopeOrOptions;
807 }
808 return {
809 cacheScope: cacheScopeOrOptions,
810 cacheType: normalizeCacheType(cacheType),
811 };
812}
813
814export function createArtifactCache(
815 scope: string,

Callers 2

hasTensorInCacheFunction · 0.85
deleteTensorCacheFunction · 0.85

Calls 2

normalizeCacheTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…