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

Function run

tfjs-node/scripts/install.js:204–214  ·  view source on GitHub ↗

* Ensures libtensorflow requirements are met for building the binding.

()

Source from the content-addressed store, hash-verified

202 * Ensures libtensorflow requirements are met for building the binding.
203 */
204async function run() {
205 // First check if deps library exists:
206 if (forceDownload !== 'download' && await exists(depsLibTensorFlowPath)) {
207 // Library has already been downloaded, then compile and simlink:
208 await build();
209 } else {
210 // Library has not been downloaded, download, then compile and symlink:
211 await cleanDeps();
212 await downloadLibtensorflow(build);
213 }
214}
215
216run();

Callers 1

install.jsFile · 0.70

Calls 3

cleanDepsFunction · 0.85
downloadLibtensorflowFunction · 0.85
buildFunction · 0.70

Tested by

no test coverage detected