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

Rename an internal fct

上级 59f42d11
...@@ -183,11 +183,10 @@ def _config_print(thing, buf, print_doc=True): ...@@ -183,11 +183,10 @@ def _config_print(thing, buf, print_doc=True):
print("", file=buf) print("", file=buf)
def get_config_md5(): def get_config_hash():
""" """
Return a string sha256 of the current config options. hash_from_code uses Return a string sha256 of the current config options. In the past,
sha256, and not md5. Updated in PR#5916. Function names will be properly it was md5.
updated in future release.
The string should be such that we can safely assume that two different The string should be such that we can safely assume that two different
config setups will lead to two different strings. config setups will lead to two different strings.
......
...@@ -1388,7 +1388,7 @@ class CLinker(link.Linker): ...@@ -1388,7 +1388,7 @@ class CLinker(link.Linker):
# names and string instances of md5 will be updated at a later release. # names and string instances of md5 will be updated at a later release.
# See PR#5916 for details. # See PR#5916 for details.
if insert_config_hash: if insert_config_hash:
sig.append('md5:' + theano.configparser.get_config_md5()) sig.append('md5:' + theano.configparser.get_config_hash())
else: else:
sig.append('md5: <omitted>') sig.append('md5: <omitted>')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论