зеркало из https://github.com/mozilla/DeepSpeech.git
Родитель
555a265010
Коммит
4bc14acb12
|
@ -7,7 +7,7 @@ build:
|
|||
>
|
||||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt}
|
||||
scripts:
|
||||
setup: "taskcluster/tf_tc-setup.sh --android"
|
||||
setup: "taskcluster/tf_tc-setup.sh --android-arm64"
|
||||
build: "taskcluster/tf_tc-build.sh --android-arm64"
|
||||
package: "taskcluster/tf_tc-package.sh"
|
||||
maxRunTime: 14400
|
||||
|
|
|
@ -7,7 +7,7 @@ build:
|
|||
>
|
||||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt}
|
||||
scripts:
|
||||
setup: "taskcluster/tf_tc-setup.sh --android"
|
||||
setup: "taskcluster/tf_tc-setup.sh --android-armv7"
|
||||
build: "taskcluster/tf_tc-build.sh --android-armv7"
|
||||
package: "taskcluster/tf_tc-package.sh"
|
||||
maxRunTime: 14400
|
||||
|
|
|
@ -6,7 +6,7 @@ build:
|
|||
workerType: ${macOS.tfBuild}
|
||||
scripts:
|
||||
setup: "taskcluster/tf_tc-setup.sh"
|
||||
build: "taskcluster/tf_tc-build.sh --cpu"
|
||||
build: "taskcluster/tf_tc-build.sh --darwin-cpu"
|
||||
package: "taskcluster/tf_tc-package.sh"
|
||||
maxRunTime: 28800
|
||||
metadata:
|
||||
|
|
|
@ -8,7 +8,7 @@ build:
|
|||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt}
|
||||
scripts:
|
||||
setup: "taskcluster/tf_tc-setup.sh"
|
||||
build: "taskcluster/tf_tc-build.sh --cpu"
|
||||
build: "taskcluster/tf_tc-build.sh --linux-cpu"
|
||||
package: "taskcluster/tf_tc-package.sh"
|
||||
maxRunTime: 14400
|
||||
workerType: "${docker.tfBuild}"
|
||||
|
|
|
@ -7,8 +7,8 @@ build:
|
|||
>
|
||||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt}
|
||||
scripts:
|
||||
setup: "taskcluster/tf_tc-setup.sh --cuda"
|
||||
build: "taskcluster/tf_tc-build.sh --gpu"
|
||||
setup: "taskcluster/tf_tc-setup.sh --linux-cuda"
|
||||
build: "taskcluster/tf_tc-build.sh --linux-cuda"
|
||||
package: "taskcluster/tf_tc-package.sh"
|
||||
maxRunTime: 14400
|
||||
workerType: "${docker.tfBuild}"
|
||||
|
|
|
@ -8,7 +8,7 @@ build:
|
|||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt}
|
||||
scripts:
|
||||
setup: "taskcluster/tf_tc-setup.sh"
|
||||
build: "taskcluster/tf_tc-build.sh --arm64"
|
||||
build: "taskcluster/tf_tc-build.sh --linux-arm64"
|
||||
package: "taskcluster/tf_tc-package.sh"
|
||||
maxRunTime: 14400
|
||||
workerType: "${docker.tfBuild}"
|
||||
|
|
|
@ -8,7 +8,7 @@ build:
|
|||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt}
|
||||
scripts:
|
||||
setup: "taskcluster/tf_tc-setup.sh"
|
||||
build: "taskcluster/tf_tc-build.sh --arm"
|
||||
build: "taskcluster/tf_tc-build.sh --linux-arm"
|
||||
package: "taskcluster/tf_tc-package.sh"
|
||||
maxRunTime: 14400
|
||||
workerType: "${docker.tfBuild}"
|
||||
|
|
|
@ -14,30 +14,32 @@ pushd ${DS_ROOT_TASK}/DeepSpeech/ds/tensorflow/
|
|||
# Force toolchain sync (useful on macOS ?)
|
||||
bazel ${BAZEL_OUTPUT_USER_ROOT} sync --configure
|
||||
|
||||
OPT_OR_DBG=${2:-opt}
|
||||
|
||||
case "$1" in
|
||||
"--cpu")
|
||||
echo "" | TF_NEED_CUDA=0 ./configure && ${BAZEL_BUILD} -c opt ${BAZEL_OPT_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BUILD_TARGET_LIB_CPP_API} ${BUILD_TARGET_LITE_LIB}
|
||||
"--linux-cpu"|"--darwin-cpu"|"--windows-cpu")
|
||||
echo "" | TF_NEED_CUDA=0 ./configure && ${BAZEL_BUILD} -c ${OPT_OR_DBG} ${BAZEL_OPT_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BUILD_TARGET_LIB_CPP_API} ${BUILD_TARGET_LITE_LIB}
|
||||
;;
|
||||
"--gpu")
|
||||
eval "export ${TF_CUDA_FLAGS}" && (echo "" | TF_NEED_CUDA=1 ./configure) && ${BAZEL_BUILD} -c opt ${BAZEL_CUDA_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BAZEL_OPT_FLAGS} ${BUILD_TARGET_LIB_CPP_API}
|
||||
"--linux-cuda"|"--windows-cuda")
|
||||
eval "export ${TF_CUDA_FLAGS}" && (echo "" | TF_NEED_CUDA=1 ./configure) && ${BAZEL_BUILD} -c ${OPT_OR_DBG} ${BAZEL_CUDA_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BAZEL_OPT_FLAGS} ${BUILD_TARGET_LIB_CPP_API}
|
||||
;;
|
||||
"--arm")
|
||||
echo "" | TF_NEED_CUDA=0 ./configure && ${BAZEL_BUILD} -c opt ${BAZEL_ARM_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
"--linux-arm")
|
||||
echo "" | TF_NEED_CUDA=0 ./configure && ${BAZEL_BUILD} -c ${OPT_OR_DBG} ${BAZEL_ARM_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
;;
|
||||
"--arm64")
|
||||
echo "" | TF_NEED_CUDA=0 ./configure && ${BAZEL_BUILD} -c opt ${BAZEL_ARM64_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
"--linux-arm64")
|
||||
echo "" | TF_NEED_CUDA=0 ./configure && ${BAZEL_BUILD} -c ${OPT_OR_DBG} ${BAZEL_ARM64_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
;;
|
||||
"--android-armv7")
|
||||
echo "" | TF_SET_ANDROID_WORKSPACE=1 ./configure && ${BAZEL_BUILD} -c opt ${BAZEL_ANDROID_ARM_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
echo "" | TF_SET_ANDROID_WORKSPACE=1 ./configure && ${BAZEL_BUILD} -c ${OPT_OR_DBG} ${BAZEL_ANDROID_ARM_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
;;
|
||||
"--android-arm64")
|
||||
echo "" | TF_SET_ANDROID_WORKSPACE=1 ./configure && ${BAZEL_BUILD} -c opt ${BAZEL_ANDROID_ARM64_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
echo "" | TF_SET_ANDROID_WORKSPACE=1 ./configure && ${BAZEL_BUILD} -c ${OPT_OR_DBG} ${BAZEL_ANDROID_ARM64_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
;;
|
||||
"--ios-arm64")
|
||||
echo "" | TF_NEED_CUDA=0 TF_CONFIGURE_IOS=1 ./configure && ${BAZEL_BUILD} -c opt ${BAZEL_IOS_ARM64_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
echo "" | TF_NEED_CUDA=0 TF_CONFIGURE_IOS=1 ./configure && ${BAZEL_BUILD} -c ${OPT_OR_DBG} ${BAZEL_IOS_ARM64_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
;;
|
||||
"--ios-x86_64")
|
||||
echo "" | TF_NEED_CUDA=0 TF_CONFIGURE_IOS=1 ./configure && ${BAZEL_BUILD} -c opt ${BAZEL_IOS_X86_64_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
echo "" | TF_NEED_CUDA=0 TF_CONFIGURE_IOS=1 ./configure && ${BAZEL_BUILD} -c ${OPT_OR_DBG} ${BAZEL_IOS_X86_64_FLAGS} ${BUILD_TARGET_LITE_LIB}
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -4,15 +4,17 @@ set -ex
|
|||
|
||||
source $(dirname $0)/tf_tc-vars.sh
|
||||
|
||||
install_cuda=
|
||||
if [ "$1" = "--cuda" ]; then
|
||||
install_cuda=yes
|
||||
fi
|
||||
|
||||
install_android=
|
||||
if [ "$1" = "--android" ]; then
|
||||
install_cuda=
|
||||
case "$1" in
|
||||
"--linux-cuda"|"--windows-cuda")
|
||||
install_cuda=yes
|
||||
;;
|
||||
|
||||
"--android-armv7"|"--android-arm64")
|
||||
install_android=yes
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# $1 url
|
||||
# $2 sha256
|
||||
|
|
|
@ -8,7 +8,7 @@ build:
|
|||
${tensorflow.packages_win.pacman} && ${tensorflow.packages_win.msys64}
|
||||
scripts:
|
||||
setup: "taskcluster/tf_tc-setup.sh"
|
||||
build: "taskcluster/tf_tc-build.sh --cpu"
|
||||
build: "taskcluster/tf_tc-build.sh --windows-cpu"
|
||||
package: "taskcluster/tf_tc-package.sh"
|
||||
maxRunTime: 14400
|
||||
metadata:
|
||||
|
|
|
@ -8,7 +8,7 @@ build:
|
|||
${tensorflow.packages_win.pacman} && ${tensorflow.packages_win.msys64}
|
||||
scripts:
|
||||
setup: "taskcluster/tf_tc-setup.sh"
|
||||
build: "taskcluster/tf_tc-build.sh --gpu"
|
||||
build: "taskcluster/tf_tc-build.sh --windows-cuda"
|
||||
package: "taskcluster/tf_tc-package.sh"
|
||||
maxRunTime: 14400
|
||||
metadata:
|
||||
|
|
Загрузка…
Ссылка в новой задаче