Could I get the tensors which tensor1 has the size (tensor11 size, tensor12 size, tensor13 size), tensor2 has the size(tensor12 size, tensor22 size, tensor 32 size).
If possible, how could I use nn.MSELoss() to computer the loss between elements between these 2 tensor on same positions and get these 3 losses between (tensor11, tensor12), (tensor21, tensor22) and (tensor31, tensor32) by one step while these losses will be utilised in BP?
Thanks.
Thanks very much. I calculate 3 losses respectively and concatenate them by () now. It’s weird that the loss can be used in back propagation in this way. I mean python always seems the element in () as A tuple in my computer