接下来使用torch.index_select(input,dim,index,out=None) 函数分别对1D 张量、2D 张量和3D 张量进行索引。 >>> import torch >>> # 创建1D张量>>> a ...
確定! 回上一頁