提交 d70072cd authored 作者: Frederic Bastien's avatar Frederic Bastien

Small comment update

上级 c2d3c959
...@@ -1236,8 +1236,7 @@ class CLinker(link.Linker): ...@@ -1236,8 +1236,7 @@ class CLinker(link.Linker):
(opK, input_signatureK, output_signatureK), (opK, input_signatureK, output_signatureK),
}}} }}}
Note that config hash now uses sha256, and not md5. Function names will Note that config hash now uses sha256, and not md5.
updated in a future release to reflect the use of hashlib.sha256.
The signature is a tuple, some elements of which are sub-tuples. The signature is a tuple, some elements of which are sub-tuples.
...@@ -1385,8 +1384,7 @@ class CLinker(link.Linker): ...@@ -1385,8 +1384,7 @@ class CLinker(link.Linker):
# can lead to a different compiled file with the same source code. # can lead to a different compiled file with the same source code.
# NOTE: config md5 is not using md5 hash, but sha256 instead. Function # NOTE: config md5 is not using md5 hash, but sha256 instead. Function
# names and string instances of md5 will be updated at a later release. # string instances of md5 will be updated at a later release.
# See PR#5916 for details.
if insert_config_hash: if insert_config_hash:
sig.append('md5:' + theano.configparser.get_config_hash()) sig.append('md5:' + theano.configparser.get_config_hash())
else: else:
......
...@@ -1252,7 +1252,7 @@ class ModuleCache(object): ...@@ -1252,7 +1252,7 @@ class ModuleCache(object):
"Ops. The file is: %s. The key is: %s" % (msg, key_pkl, key)) "Ops. The file is: %s. The key is: %s" % (msg, key_pkl, key))
# Also verify that there exists no other loaded key that would be equal # Also verify that there exists no other loaded key that would be equal
# to this key. In order to speed things up, we only compare to keys # to this key. In order to speed things up, we only compare to keys
# with the same version part and config md5, since we can assume this # with the same version part and config hash, since we can assume this
# part of the key is not broken. # part of the key is not broken.
for other in self.similar_keys.get(get_safe_part(key), []): for other in self.similar_keys.get(get_safe_part(key), []):
if other is not key and other == key and hash(other) != hash(key): if other is not key and other == key and hash(other) != hash(key):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论