scripts/deps-stage.js
async function symlinkDepsLib() {
  if (destLibPath === undefined) {
    throw new Error('Destination path not supplied!');
  }
  try {
    await symlink(depsLibTensorFlowPath, destLibPath);
    if (os.platform() !== 'win32') {
      await symlink(depsLibTensorFlowFrameworkPath, destFrameworkLibPath);
    }
  } catch (e) {
    console.error(
        `  * Symlink of ${destLibPath} failed, creating a copy on disk.`);
    await copy(depsLibTensorFlowPath, destLibPath);
    if (os.platform() !== 'win32') {
      await copy(depsLibTensorFlowFrameworkPath, destFrameworkLibPath);
    }
  }
}
async function symlinkDepsLib() {
  if (destLibPath === undefined) {
    throw new Error('Destination path not supplied!');
  }
  try {
    await symlink(depsLibTensorFlowPath, destLibPath);
    if (os.platform() !== 'win32') {
      await symlink(depsLibTensorFlowFrameworkPath, destFrameworkLibPath);
    }
  } catch (e) {
    console.error(
        `  * Symlink of ${destLibPath} failed, creating a copy on disk.`);
    await copy(depsLibTensorFlowPath, destLibPath);
    if (os.platform() !== 'win32') {
      await copy(depsLibTensorFlowFrameworkPath, destFrameworkLibPath);
    }
  }
}
async function symlinkDepsLib ( ) { if ( destLibPath === undefined ) { throw new Error ( 'Destination path not supplied!' ) ; } try { await symlink ( depsLibTensorFlowPath , destLibPath ) ; if ( os . platform ( ) !== 'win32' ) { await symlink ( depsLibTensorFlowFrameworkPath , destFrameworkLibPath ) ; } } catch ( e ) { console . error ( ` ${ destLibPath } ` ) ; await copy ( depsLibTensorFlowPath , destLibPath ) ; if ( os . platform ( ) !== 'win32' ) { await copy ( depsLibTensorFlowFrameworkPath , destFrameworkLibPath ) ; } } }
Symlinks the extracted libtensorflow library to the destination path. If the
symlink fails, a copy is made.
Symlinks the extracted libtensorflow library to the destination path . If the symlink fails a copy is made .