You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PaddleSpeech/speechx/examples/ds2_ol/nnet/valgrind.sh

20 lines
460 B

3 years ago
#!/bin/bash
# this script is for memory check, so please run ./run.sh first.
set +x
set -e
3 years ago
. ./path.sh
if [ ! -d ${SPEECHX_TOOLS}/valgrind/install ]; then
3 years ago
echo "please install valgrind in the speechx tools dir.\n"
exit 1
fi
model_dir=../paddle_asr_model
3 years ago
valgrind --tool=memcheck --track-origins=yes --leak-check=full --show-leak-kinds=all \
pp-model-test \
--model_path=$model_dir/avg_1.jit.pdmodel \
--param_path=$model_dir/avg_1.jit.pdparams