Skip to content

Add API function to retrieve size of bijector output from bijector input #265

@sethaxen

Description

@sethaxen

As originally noted in #263 (comment), the following lines assume that inputs and outputs of a bijector have the same shape, which is no longer required:

To fix this, these methods need an API function that computes the output size of a bijector from the input size, defaulting to the same size.

Alternatively, if Bijectors is meant to support non-array types, such as arbitrary Structs, then these size checks make no sense, and it is perhaps better to generalize this code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions