viable/strict/1788121496: [BE][Ez]: Removes double probes in STL collections (#195299)
- PyTorch: 259 events in the last 90 days
- PyTorch: 256th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1788112218: [MPS] Add special_laguerre_polynomial_l (#195225)
What happened
Finds the common contains and then at STL collection pattern and replaces them using the find() API which both checks if the object exists in the collection and returns its reference. This removes the need for looking up the key twice. Use Codex Luna to automatically find all of these and then I manually reviewed all of them. Test Plan: NFC all tests should pass Pull Request resolved: #195299 Approved by: https://gi…
Summary assembled by rule from the sources below