Skip to content

Rewrite to remove useless Reshape #845

@ricardoV94

Description

@ricardoV94

Description

With static types it is possible to find out cases where we know the reshape is useless at compile time. We should remove it when that's the case.

Sometimes the Reshape may also just be expanding dims, pt.scalar().reshape((1, -1)) (which showed up in the use of tensordot in #722), which should also be rewritten, as we have many rewrites that reason about Dimshuffles but not Reshapes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions