def weighted_mse_loss(input,target,weights): out = (input-target)**2 #print(\'Simple-Ou-Shape::\',out.shape,out) out = out * weights.expand_as(out) out=o