Reshape#
- class myoverse.transforms.Reshape(shape, names=None, **kwargs)[source]#
Reshape tensor with new dimension names.
- Parameters:
Examples
>>> x = torch.randn(64, 2048, names=('channel', 'time')) >>> reshape = Reshape((8, 8, 2048), names=('row', 'col', 'time')) >>> y = reshape(x) # Shape: (8, 8, 2048)
Methods