ferattention icon indicating copy to clipboard operation
ferattention copied to clipboard

the variable "loss_att" is overrided

Open daaiwusheng opened this issue 3 years ago • 0 comments

in the class AttMSEloss, in the forward function.

loss_att = ((( (x_org*y_mask[:,1,...].unsqueeze(dim=1)) - att ) ** 2)).mean() this result is overrided by the next sentence, loss_att = ((( x_org - att ) ** 2)).mean()

is this a bug?

daaiwusheng avatar Jul 11 '21 09:07 daaiwusheng