gx
chenyc
2025-02-12 ea42ff3ebee1eeb3fb29423aa848a249441db81c
1
2
3
4
5
6
7
8
9
10
11
12
:: Download TensorFlow GPU library and compile native node addon
node scripts/install.js gpu download
call yarn
call yarn build-addon-from-source
:: Compress and upload the GPU node addon to GCP bucket.
for /f %%i in ('node scripts/get-addon-name.js') do set PACKAGE_NAME=%%i
:: Update addon tarball name to GPU
set PACKAGE_NAME=%PACKAGE_NAME:CPU=GPU%
for /f %%i in ('node -p "process.versions.napi"') do set NAPI_VERSION=%%i
tar -czvf %PACKAGE_NAME% -C lib napi-v%NAPI_VERSION%/tfjs_binding.node
for /f %%i in ('node scripts/print-full-package-host') do set PACKAGE_HOST=%%i
gsutil cp %PACKAGE_NAME% gs://%PACKAGE_HOST%