Skip to content

float with 0 decimal converted to float32 instead of float64 #1913

@ricardoV94

Description

@ricardoV94

Description

import pytensor.tensor as pt

pt.as_tensor(8.9).dtype, pt.as_tensor(9.0).dtype, pt.as_tensor(9.1).dtype
# ('float64', 'float32', 'float64')

Completely puzzling

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