Skip to content

Implement distribution shape helpers to avoid need for dummy tensors #412

@fritzo

Description

@fritzo

As mentioned in #402 (comment) we should add distribution methods upstream to perform all needed shape operations.

Currently Funsor's distribution shaping logic uses the pattern of creating fake distributions with dummy tensors to determine distribution event shape and batch shape. As a goal for Funsor use in Pyro 2.0, we should eliminate the need to ever instantiate a dummy tensor, and should eliminate the tensor shape caches.

Tasks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions