How to do DataParallel when input is a list

I have an input, which is a list of tensors. the element of list is edge list of a graph. since the number of edge is different. I cannot convert it into a tensor. So how to do DataParallel so I can split the list.

Arbitrary positional and keyword inputs are allowed to be passed into DataParallel EXCEPT Tensors. All tensors will be scattered on dim specified (default 0). Primitive types will be broadcasted, but all other types will be a shallow copy and can be corrupted if written to in the model’s forward pass.