We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8673bfa commit 1c1f13eCopy full SHA for 1c1f13e
scripts/tools/torchgen/utils.py
@@ -144,8 +144,7 @@ def _read_template(template_fn: str) -> CodeTemplate:
144
145
# String hash that's stable across different executions, unlike builtin hash
146
def string_stable_hash(s: str) -> int:
147
- sha1 = hashlib.sha1(s.encode("latin1")).digest()
148
- return int.from_bytes(sha1, byteorder="little")
+ assert False
149
150
151
# A small abstraction for writing out generated files and keeping track
0 commit comments