Hi @ky_Pa ,
I formulated tensor1 and tensor2 as in your case.
I formulated a tensor temp from tensor1 that has a shape of (8,3) to enable element-wise multiplication.
tensor1 = torch.tensor([[0.4,0.6]]*8)
tensor2 = torch.tensor([[0.0794, 0.0728, 0.8477],
                        [0.1744, 0.0727, 0.7529],
                        [0.6121, 0.2235, 0.1644],
                        [0.0610, 0.0458, 0.8932],
                        [0.5754, 0.1586, 0.2660],
                        [0.8185, 0.1012, 0.0802],
                        [0.4628, 0.1336, 0.4036],
                        [0.3557, 0.0482, 0.5960]])
temp = tensor1[:,0].repeat(1,3).reshape(8,3)
torch.mul(temp, tensor2)
# OR
# np.multiply(temp,tensor2)

Hope it may work for you.