Apply clang-tidy perf improvements to aten and torch/jit/passes/onnx (#91726)
Applies some minor performance fixups to pytorch regarding an implicit promotion and unnecessary copies (when const ref would have worked just as well).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/91726
Approved by: https://github.com/ezyang