For tensor t, you can use, You can use torch.randperm. For tensor t , you can use: t[: , torch.randperm(t.shape[1]),: ]. load more v.
確定! 回上一頁