Skip to content

Checking for blas flags has a high import cost on the library #1160

@ricardoV94

Description

@ricardoV94

Description

On my machine, which uses openblas, the check_blas, ultimately triggered in these lines when pytensor is imported:

if not config.blas__ldflags:
_logger.warning("Using NumPy C-API based implementation for BLAS functions.")

Takes 2s out of the total 3s import time. The rest is due to scipy imports:

Image

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