Skip to content

Add debug logs for when logrob rewrites don't apply #6691

Open
@ricardoV94

Description

@ricardoV94

We shouldn't raise errors when our measurable rewrites don't apply, because another rewrite (including a user custom one) could implement a transformation for a given graph.

However we could add debug logs for the cases where we almost wanted to raise an error because the graph is likely not measurable (e.g., if the graph looks like a convolution instead of a conditional transformation).

This way users (and devs) can figure out why PyMC refused to figure out the logprob for their graph, without having to raise eager errors or warnings.

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