Skip to content

Flaky test_profile.py::TestProfile::test_profile_variable  #6091

@ricardoV94

Description

@ricardoV94

I have seen this one fail repeatedly recently, such as in https://github.com/pymc-devs/pymc/runs/8135110596?check_suite_focus=true

 ================================== FAILURES ===================================
______________________ TestProfile.test_profile_variable ______________________

self = <pymc.tests.test_profile.TestProfile object at 0x0000020C722FB460>

    def test_profile_variable(self):
        rv = self.model.basic_RVs[0]
>       assert self.model.profile(self.model.logp(vars=[rv], sum=False)).fct_call_time
E       assert 0.0
E        +  where 0.0 = <aesara.compile.profiling.ProfileStats object at 0x0000020C729943D0>.fct_call_time
E        +    where <aesara.compile.profiling.ProfileStats object at 0x0000020C729943D0> = <bound method Model.profile of <pymc.model.Model object at 0x0000020C728B4130>>([Elemwise{mul,no_inplace}.0])
E        +      where <bound method Model.profile of <pymc.model.Model object at 0x0000020C728B4130>> = <pymc.model.Model object at 0x0000020C728B4130>.profile
E        +        where <pymc.model.Model object at 0x0000020C728B4130> = <pymc.tests.test_profile.TestProfile object at 0x0000020C722FB460>.model
E        +      and   [Elemwise{mul,no_inplace}.0] = <bound method Model.logp of <pymc.model.Model object at 0x0000020C728B4130>>(vars=[x], sum=False)
E        +        where <bound method Model.logp of <pymc.model.Model object at 0x0000020C728B4130>> = <pymc.model.Model object at 0x0000020C728B4130>.logp
E        +          where <pymc.model.Model object at 0x0000020C728B4130> = <pymc.tests.test_profile.TestProfile object at 0x0000020C722FB460>.model

pymc\tests\test_profile.py:27: AssertionError

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