This PR saves unnecessary transpose, reshape operators of ExpandedDistribution's sample method. The current tests should cover the change.
This requires us to revert the order of expanded_sizes such that the dimensions are ordered from left to right (rather than the current right -> left).
This PR saves unnecessary transpose, reshape operators of ExpandedDistribution's sample method. The current tests should cover the change.
This requires us to revert the order of
expanded_sizes
such that the dimensions are ordered from left to right (rather than the current right -> left).