python - Stacking tensors in a list of tuples of tensors ...
https://stackoverflow.com/questions/59149275/stacking-tensors-in-a...03.12.2019 · In this case, the output tuple would have three values, and look like this: ( tensor ( [ [1,2,3], [9,10,11], [16,17,18]]), tensor ( [ [4,5,6,7], [11,12,13,14], [19,20,21,22]], tensor ( [ [8], [15], [23]) ) This is a made-up example. I want to do this for tuples of …
Can i save tuple in tensor? - PyTorch Forums
https://discuss.pytorch.org/t/can-i-save-tuple-in-tensor/2113314.07.2018 · is there a way to put tuple in tensor? e.g. FM = torch.ones(1,4,3,3) FM[0,0,1,1] = (2,2) alwynmathew(Alwyn Mathew) July 14, 2018, 6:56am #2 I don’t think we can. Instead, you may …