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