Skip to content

Numba doesn't respect scalar types #1407

Open
@ricardoV94

Description

@ricardoV94

Description

Example revealed in #1406

import numpy as np
import pytensor.scalar as ps

x = ps.float64("x")
y = x.astype("float32")
y.eval({x: np.int64(0.0)}, mode="NUMBA").dtype  # AttributeError: 'float' object has no attribute 'dtype'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnumba

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions