torch.randint: 在給定的上下界(預設下界為0)中抽樣"整數"元素組成給定形狀的張量. 2. t6 = torch.randint(low=0, high=10, size=(3,2)). 3. print(t6.shape).
確定! 回上一頁