Skip to content

[dynamo] Tests using kstest are being killed in CI #116271

@peterbell10

Description

@peterbell10

🐛 Describe the bug

When run under dynamo, tests in test/nn/test_init.py which use scipy.stats.kstest to check statistical properties of randomly generated data are being killed in the CI runners and causing tests to fail. This seems to be related to this warning from the dynamo logs,

  File "/opt/conda/envs/py_3.11/lib/python3.11/site-packages/torch/_dynamo/variables/builder.py", line 1126, in wrap_numpy_ndarray
    value.flags.writeable = True
    ^^^^^^^^^^^^^^^^^^^^^
torch._dynamo.exc.InternalTorchDynamoError: cannot set WRITEABLE flag to True of this array

Skipping these for now in #116263

Error logs

Full logs are available in the hud:
https://hud.pytorch.org/failure?name=pull%20%2F%20linux-focal-py3.11-clang10%20%2F%20test%20(dynamo%2C%202%2C%207%2C%20linux.2xlarge)&jobName=undefined&failureCaptures=%5B%22RuntimeError%3A%20nn%2Ftest_init%202%2F3%20failed%22%5D

Minified repro

No response

Versions

8fd1963

cc @mruberry @rgommers @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames @Lucaskabela @ezyang @msaroufim @wconstab @bdhirsh @anijain2305 @zou3519 @aakhundov

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionablemodule: dynamomodule: numpyRelated to numpy support, and also numpy compatibility of our operatorsoncall: pt2triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions