export.sh 395 字节
Newer Older
H
Hui Zhang 已提交
1 2
#! /usr/bin/env bash

3 4
if [ $# != 3 ];then
    echo "usage: $0 config_path ckpt_prefix jit_model_path"
H
Hui Zhang 已提交
5 6 7
    exit -1
fi

8 9 10 11
config_path=$1
ckpt_path_prefix=$2
jit_model_export_path=$3

H
Hui Zhang 已提交
12
python3 -u ${BIN_DIR}/export.py \
13 14 15
--config ${config_path} \
--checkpoint_path ${ckpt_path_prefix} \
--export_path ${jit_model_export_path} 
H
Hui Zhang 已提交
16 17 18


if [ $? -ne 0 ]; then
19
    echo "Failed in export!"
H
Hui Zhang 已提交
20 21 22 23 24
    exit 1
fi


exit 0