This should work:
q = torch.randn(64,3,3,3)
t = torch.randn(64)
qq = t.unsqueeze(1).unsqueeze(1).unsqueeze(1)  * q
for i in range(64):
    torch.allclose(t[i] * q[i], qq[i]) # should be true all the time