viable/strict/1790538658: [MPS] Move addc{mul,div} value=0 non-finite test to OpInfo (#198753)
- PyTorch 近 90 天出现 1549 次
- PyTorch 近 90 天第 1530 次发版
- 上一次:同一天稍早 · viable/strict/1790531483
发生了什么
Replaces MPS-specific test_addc_ops_value_zero with a sample in sample_inputs_addcmul_addcdiv : value=0 with NaN/Inf in tensor1 and a zero in tensor2 , which must still propagate to the output (MPSGraph used to short-circuit value=0 into a copy of self ). The sample is generated only when requires_grad is False, like the foreach-norm NaN samples: its NaN outputs make gradcheck's finite-difference Jacobians NaN, whic…
摘要按规则整理自下方来源原文