← Back to events
ActiveAIRelease

trunk/6a1f98d375156c5f86082483ca0dd4398b80d1c5: Use empty() rather than size() > 0 in the generated backward() (#195102)

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

Why it's spreading

Sources