[PyTorch] Use std::find in the JIT lexer (#64652)
authorScott Wolchok <swolchok@fb.com>
Fri, 10 Sep 2021 01:53:36 +0000 (18:53 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 10 Sep 2021 01:59:27 +0000 (18:59 -0700)
commitb7b4f63bbc271d9c491e7639e9a0117cd19d4ec8
tree2ce519e43c114fe347f574f3dd633baa816fdb70
parenta17d6c7f80e429a1c21413329a2d73cadb11a6ef
[PyTorch] Use std::find in the JIT lexer (#64652)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64652

If nothing else, it is slightly clearer code.
ghstack-source-id: 137608456

Test Plan: CI

Reviewed By: dhruvbird

Differential Revision: D30739239

fbshipit-source-id: bc7917b59883ca4a33fc6916b4e422bad79cf04b
torch/csrc/jit/frontend/lexer.h