trunk/4461389ab0a7879b9916aa942eb83e8a7ecdfc81: Fix SciPy kstest two-sample API usage in test_init (#193125)
- PyTorch: 706 events in the last 90 days
- PyTorch: 697th Release in the last 90 days
- Previous: earlier the same day · trunk/6911c3f96e75fee5a8b5e394ebecf1b52ad4a073: [FSDP2] Avoid division-by-one allocation for singleton shards (#196348)
What happened
Summary One-line test compatibility fix for newer SciPy in test/nn/test_init.py . stats.kstest(samples, "norm", args=(mean, std)) fails with newer versions of SciPy. Update the test to use SciPy's supported callable form: stats . kstest ( samples , stats . norm ( mean , std ). cdf ) Area: /torch/nn/ Reviewers: @albanD @jbschlosser @mikaylagawarecki Note: this PR originally also fixed the NumPy 2 row_stack export che…
Summary assembled by rule from the sources below