MCPcopy Create free account
hub / github.com/tensorflow/tfjs / validateImportPath

Function validateImportPath

tfjs/tools/custom_module/esm_module_provider.ts:151–158  ·  view source on GitHub ↗
(importPath: string)

Source from the content-addressed store, hash-verified

149 },
150
151 validateImportPath(importPath: string): boolean {
152 try {
153 require.resolve(importPath);
154 return true;
155 } catch (e) {
156 return false;
157 }
158 }
159};
160
161function getBackendPath(backend: SupportedBackend) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…