Skip to content

Importing substrates is slow #1714

@carlosgmartin

Description

@carlosgmartin

It takes a noticeably long time to just import TFP substrates:

$ time python3 -c "import tensorflow_probability.substrates.jax"
python3 -c "import tensorflow_probability.substrates.jax"  4.72s user 0.77s system 116% cpu 4.724 total

$ time python3 -c "import tensorflow_probability.substrates.numpy"
python3 -c "import tensorflow_probability.substrates.numpy"  4.75s user 0.86s system 115% cpu 4.843 total

Might it be possible to speed up these imports somehow?

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