← Back to events
ActiveTechRelease

trunk/4461389ab0a7879b9916aa942eb83e8a7ecdfc81: Fix SciPy kstest two-sample API usage in test_init (#193125)

Photo: PyTorch Releases

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

Why it's spreading

Sources