pytorch
4ff71c91 - backport std::ssize to c10 (#97442)

Commit
1 year ago
backport std::ssize to c10 (#97442) backport std::ssize to c10 Summary: Now that we have -Werror=sign-compare enabled, we encounter a lot of friction comparing standard containers and our tensors which are signed. std::ssize will make it easier and safer to succinctly convert container sizes to a signed type. Test Plan: Added a unit test. Reviewers: ezyang Subscribers: Tasks: Tags: --- Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/pytorch/pytorch/pull/97442). * #97443 * __->__ #97442 Pull Request resolved: https://github.com/pytorch/pytorch/pull/97442 Approved by: https://github.com/ezyang
Author
mikey dagitses
Committer
Parents
Loading