Solved by KFrank in post #2 
              
              
                Hi Bob! 

I believe you are asking for the generalized outer product.  Please 
try torch.ger() (torch.outer) with .reshape() or torch.einsum: 
ABa = torch.ger (A.reshape([6]), B).rehshape ([2, 3, 4])
ABb = torch.einsum ('ij, k -> ijk', A, B)

These two versions should give you the same result.  Do t…