diff --git a/language_model/tensorflow/bert/run_and_time.sh b/language_model/tensorflow/bert/run_and_time.sh index b48edd57d..80cf32fc8 100644 --- a/language_model/tensorflow/bert/run_and_time.sh +++ b/language_model/tensorflow/bert/run_and_time.sh @@ -15,7 +15,6 @@ echo "STARTING TIMING RUN AT $start_fmt" : "${CONFIG_PATH:=./workspace/data/bert_config.json}" : "${LOG_DIR:=./workspace/logs}" : "${OUTPUT_DIR:=./workspace/final_output}" -: "${PARAMETERS_YAML:=./workspace/parameters.yaml}" # Handle MLCube parameters while [ $# -gt 0 ]; do @@ -43,57 +42,29 @@ while [ $# -gt 0 ]; do shift done -function parse_yaml { - local prefix=$2 - local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') - sed -ne "s|^\($s\):|\1|" \ - -e "s|^\($s\)\($w\)$s:$s[\"']\(.*\)[\"']$s\$|\1$fs\2$fs\3|p" \ - -e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | - awk -F$fs '{ - indent = length($1)/2; - vname[indent] = $2; - for (i in vname) {if (i > indent) {delete vname[i]}} - if (length($3) > 0) { - vn=""; for (i=0; i