trunk/4461389ab0a7879b9916aa942eb83e8a7ecdfc81: Fix SciPy kstest two-sample API usage in test_init (#193125)
- PyTorch 近 90 天出现 706 次
- PyTorch 近 90 天第 697 次发版
- 上一次:同一天稍早 · trunk/6911c3f96e75fee5a8b5e394ebecf1b52ad4a073: [FSDP2] Avoid division-by-one allocation for singleton shards (#196348)
发生了什么
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…
摘要按规则整理自下方来源原文