List element wise addition

I have list “c=[[1, 2], [6, 7]]”. I want element wise sum of list(0) and list(1) such that output is
“out=[7,9]”.

Hi,

Are you asking in python in general or using pytorch?
Using PyTorch, you can simply do torch.tensor(your_list).sum(1).

Thanks that’s solved my issue.