(tensor1[:, :, None] * tensor2[:, None, :])[:, 0] gives the exact same result without using repeat. I don’t know if you want only the 0 index, then you would do the indexing before the multiplication.
The key trick here is broadcasting 1.
Best regards
Thomas