Skip to content

[ dy2static ] align the loss in BMN #560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test_tipc/configs/BMN/train_dy2static_python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ train_model_name:null
-o DATASET.train.file_path:null
##
trainer:norm_train
norm_train:main.py --validate -c configs/localization/bmn.yaml --seed 1234
norm_train:main.py -c configs/localization/bmn.yaml --seed 1234 --max_iters=3 -o log_interval=1
pact_train:null
fpgm_train:null
distill_train:null
Expand Down
4 changes: 2 additions & 2 deletions test_tipc/test_train_dy2static_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ do
eval $cmd

# analysis and compare the losses.
dyout=`cat $dy2static_output | python test_tipc/extract_loss.py -v 'train step' -e 'loss: {%f} '`
stout=`cat $dygraph_output | python test_tipc/extract_loss.py -v 'train step' -e 'loss: {%f} '`
dyout=`cat $dy2static_output | python test_tipc/extract_loss.py -v 'train step' -e 'loss: {%f} ' | head -n 3`
stout=`cat $dygraph_output | python test_tipc/extract_loss.py -v 'train step' -e 'loss: {%f} ' | head -n 3`
echo $dyout > $dygraph_loss
echo $stout > $dy2static_loss
diff_log=$LOG_PATH/${config_name}_diff_log.txt
Expand Down