import torch x = torch.randn(size=(10, 8)) start, end, steps = 0, 9, 2 indexes = slice(start, end, steps) y = x[indexes] print(y.shape) ...
確定! 回上一頁