import torch. x = torch.randn( 5 , 3 ). # Return a view of the x, but only having. # one dimension. y = x.view( 5 * 3 ). print ( 'Size of x:' , x.size()).
確定! 回上一頁