Hello,

I want to convert` tensor([4]) to tensor([4,2])`

without changing elements in it.

I have tried using torch.reshape, but it does not work, and gives some error.

I do not want to change the dimension using squeeze or unsqeeze.

My aim is to use BInary Cross Entropy,

And I have t`arget shape tensor([4,1]) and output shape tensor([4,2])`

But it says that BCE Loss inputs must be of same shape.

Any help is most appreciated!