Pytorch数组反转(数组倒序)函数flip的使用
TORCH.FLIP函数torch.flip(input, dims) → TensorReverse the order of a n-D tensor along given axis in dims.对n维张量的指定维度进行反转(倒序)NOTEtorch.flip makes a copy of input’s data. This is different from NumPy’s np.flip, which returns a view in constant time. Since
原创
2021-02-15 12:07:17 ·
25375 阅读 ·
1 评论