* Ensures libtensorflow requirements are met for building the binding.
()
| 202 | * Ensures libtensorflow requirements are met for building the binding. |
| 203 | */ |
| 204 | async 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 | |
| 216 | run(); |
no test coverage detected