mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Replace `if (!foo) TORCH_CHECK(false, "bar");` with `TORCH_CHECK(foo, "bar");` Pull Request resolved: https://github.com/pytorch/pytorch/pull/164987 Approved by: https://github.com/albanD, https://github.com/Skylion007