Solved by ptrblck in post #3 
              
              
                Yes, your approach should work fine and you could double check it with a defined examples, such as: 
x = torch.arange(1, 5)[:, None, None].expand(-1, 4, 8).float()
y = torch.arange(1, 5).float()

xnew = x/y[:, None, None]
print(xnew)