Skip to content

convert_flat_trace_to_idata throws NotImplementedError with Pathfinder and pymc inference backend #577

@jaanerik

Description

@jaanerik

I get an error message
NotImplementedError: Cannot vectorize node AdvancedSetSubtensor(AllocEmpty{dtype='float'}.0, Subtensor{:, start:}.0, MakeSlice.0, [0 4]) with input MakeSlice.0 of type slice
when trying to run pymc_extras.fit_pathfinder using pymc as the inference backend.

  • This doesn't happen when I manually change the inference backend to blackjax right before calling convert_flat_trace_to_idata.
  • This also doesn't happen when I remove a deterministic node test_income that we are using for testing as seen on the bottom row below.
Image

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