We can also call torch.tensor() with the optional dtype parameter, which will set ... to infer the size of a dimension with -1 x_view = x.view(-1, 3) x_view.
確定! 回上一頁