Hi,
I need to know what is the best way (i.e. most efficient) to append a scalar value (i.e. tensor with empty size) to a tensor with multidimensional shape. I tried torch.cat and torch.stack but this requires the dimensions to be matched. I could use unsqueeze to the scalar value but I wonder if there is a better solution.
Thanks