创建tensor的方法1、从numpy数组转换而来np.array([2,3,3]) ... 使用randperm可以生成一个从0开始的、已经打乱的连续索引Tensor,用它可以对其它Tensor做shuffle。
確定! 回上一頁