A "-1" in the arguments to expand means that the size of that dimension is not be changed. This is used in torch's distrbutions and without this support passing in LinearOperators into torch distributions raises a (spurious) error. This adds support (+ a test) for this.
A "-1" in the arguments to
expand
means that the size of that dimension is not be changed. This is used in torch's distrbutions and without this support passing in LinearOperators into torch distributions raises a (spurious) error. This adds support (+ a test) for this.