torch.Tensor
view
Returns a new tensor with the same data as the self tensor but of a different shape.
要素は同じでshapeを変える
the size -1 is inferred from other dimensions
code:python
>> x = torch.randn(4, 4)
>> z = x.view(-1, 8)
>> z.size()
dtype指定
intを渡してもTensorとしてはfloatにできる