张量变换 使用torch.reshape()变换变换张量的形状torch.reshape(input, shape)参数:input: 要变换的张量shape: 新张量的形状 t = torch.randperm(10)
確定! 回上一頁