trunk/6a1f98d375156c5f86082483ca0dd4398b80d1c5: Use empty() rather than size() > 0 in the generated backward() (#195102)
- PyTorch: 209 events in the last 90 days
- PyTorch: 206th Release in the last 90 days
- Previous: earlier the same day · trunk/ff9d60a3e6a3002b92dd89bd9949c70a82e3688f: [inductor] Reuse formatted origin nodes across kernel comments (#194010)
What happened
readability-container-size-empty fires on the generated TensorBody.h, which is not a file anyone can edit; the check has to be answered in the template it comes from. inputs is a TensorList, so ArrayRef::empty() says the same thing and is what the check asks for. This is the only site of its kind left in the C++ templates. Pull Request resolved: #195102 Approved by: https://github.com/Skylion007
Summary assembled by rule from the sources below