forked from OSSInnovation/mindspore
!6066 transformer loss fix.
Merge pull request !6066 from linqingke/fasterrcnn
This commit is contained in:
commit
1bcffd29dd
|
@ -72,7 +72,7 @@ class LossCallBack(Callback):
|
|||
print("time: {}, epoch: {}, step: {}, outputs are {}".format(time_stamp_current - time_stamp_first,
|
||||
cb_params.cur_epoch_num, cb_params.cur_step_num,
|
||||
str(cb_params.net_outputs)))
|
||||
with open("./loss_{}.log".fromat(self.rank_id), "a+") as f:
|
||||
with open("./loss_{}.log".format(self.rank_id), "a+") as f:
|
||||
f.write("time: {}, epoch: {}, step: {}, outputs are {}".format(time_stamp_current - time_stamp_first,
|
||||
cb_params.cur_epoch_num,
|
||||
cb_params.cur_step_num,
|
||||
|
|
Loading…
Reference in New Issue