I think I already found something useful: sample_size = 5 a = torch.randn(10) b = torch.randperm(10) a = a.index_select(0,b) a = a[0:sample_size]...
確定! 回上一頁