(enabled, low, high)
| 4 | |
| 5 | def test_autocast(): |
| 6 | def check(enabled, low, high): |
| 7 | assert amp.enabled == enabled |
| 8 | assert origin_amp._enabled == enabled |
| 9 | assert amp.low_prec_dtype == low |
| 10 | assert origin_amp._get_amp_low_prec_dtype() == low |
| 11 | assert amp.high_prec_dtype == high |
| 12 | assert origin_amp._get_amp_high_prec_dtype() == high |
| 13 | |
| 14 | origin_enabled = amp.enabled |
| 15 | origin_high = amp.high_prec_dtype |
no outgoing calls
no test coverage detected