( cacheScopeOrOptions: string | TensorCacheAccessOptions | undefined, cacheType?: string, )
| 799 | } |
| 800 | |
| 801 | function 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 | |
| 814 | export function createArtifactCache( |
| 815 | scope: string, |
no test coverage detected
searching dependent graphs…