# ReshapeTransform Source: https://www.tensorplay.cn/docs/generated/tensorplay.distributions.ReshapeTransform.html ```python class tensorplay.distributions.ReshapeTransform(in_shape: Size, out_shape: Size, cache_size: int = 0) ``` Unit Jacobian transform to reshape the rightmost part of a tensor. Note that in_shape and out_shape must have the same number of elements, just as for tensorplay.Tensor.reshape(). Parameters: - in_shape ([tensorplay.Size](/docs/generated/tensorplay.Size.html#tensorplay.Size)) – The input event shape. - out_shape ([tensorplay.Size](/docs/generated/tensorplay.Size.html#tensorplay.Size)) – The output event shape. - cache_size ([int](https://docs.python.org/3/builtins/functions.html#int)) – Size of cache. If zero, no caching is done. If one, the latest single value is cached. Only 0 and 1 are supported. (Default 0.) ```python property inv: Transform ``` Returns the inverse [Transform](/docs/generated/tensorplay.distributions.Transform.html#tensorplay.distributions.Transform) of this transform. This should satisfy t.inv.inv is t. ```python property sign: int ``` Returns the sign of the determinant of the Jacobian, if applicable. In general this only makes sense for bijective transforms.