2017-10-19 12:46:37 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
|
|
|
source $(dirname "$0")/../tc-tests-utils.sh
|
|
|
|
|
|
|
|
source ${DS_ROOT_TASK}/DeepSpeech/tf/tc-vars.sh
|
|
|
|
|
|
|
|
BAZEL_TARGETS="
|
|
|
|
//native_client:deepspeech
|
|
|
|
//native_client:deepspeech_utils
|
|
|
|
//native_client:generate_trie
|
|
|
|
${BAZEL_CTC_TARGETS}
|
|
|
|
"
|
|
|
|
|
2017-10-24 12:01:54 +03:00
|
|
|
BAZEL_BUILD_FLAGS="${BAZEL_ARM_FLAGS}"
|
2017-10-19 12:46:37 +03:00
|
|
|
BAZEL_ENV_FLAGS="TF_NEED_CUDA=0"
|
|
|
|
SYSTEM_TARGET=rpi3
|
|
|
|
|
2017-10-24 12:01:54 +03:00
|
|
|
if [ $1 = "--aot" ]; then
|
|
|
|
EXTRA_LOCAL_CFLAGS="${EXTRA_AOT_CFLAGS}"
|
|
|
|
EXTRA_LOCAL_LDFLAGS="${EXTRA_AOT_LDFLAGS}"
|
|
|
|
EXTRA_LOCAL_LIBS="${EXTRA_AOT_LIBS}"
|
|
|
|
|
|
|
|
do_get_model_parameters "${DEEPSPEECH_PROD_MODEL}" AOT_MODEL_PARAMS
|
|
|
|
|
|
|
|
BAZEL_TARGETS="${BAZEL_AOT_TARGETS} ${BAZEL_TARGETS}"
|
|
|
|
BAZEL_BUILD_FLAGS="${BAZEL_BUILD_FLAGS} ${BAZEL_AOT_BUILD_FLAGS} ${AOT_MODEL_PARAMS}"
|
|
|
|
fi;
|
2017-10-19 12:46:37 +03:00
|
|
|
|
|
|
|
do_bazel_build
|
|
|
|
|
|
|
|
do_deepspeech_binary_build
|
2017-10-30 14:40:22 +03:00
|
|
|
|
|
|
|
export SUPPORTED_PYTHON_VERSIONS="2.7.13 3.4.6"
|
|
|
|
do_deepspeech_python_build
|
|
|
|
|
|
|
|
do_deepspeech_nodejs_build
|