Converting vector of vectors to a 2-D Tensor in ATEN

Can anyone help me in converting a vector of vectors to a Tensor format in the most efficient way? Using Accessor to write into the tensor is taking a lot of time.