torch.vsplit
- torch.vsplit(input, indices_or_sections) → List of Tensors
Splits
input, a tensor with two or more dimensions, into multiple tensors vertically according toindices_or_sections. Each split is a view ofinput.This is equivalent to calling torch.tensor_split(input, indices_or_sections, dim=0) (the split dimension is 0), except that if is an integer it must evenly divide the split dimension or a runtime error will be thrown.