I would like to do an in-place multiplication of tensors as follows:
Q is a tensor of size bxnxn (We have b batches of different Q's)
T is a tensor of size nxn
For each batch, I would like to perform T*Q. My current method is to first do T = T.repeat(b,1,1) and then do T*Q. This seems to be wasteful as the copies of T take up valuable space in GPU memory. Is there a better way to do this?