提交 69d2f778 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

fix hashlib import issue (thanks Olivier)

上级 1d63fa25
...@@ -1082,6 +1082,7 @@ def var_descriptor(obj, _prev_obs=None, _tag_generator=None): ...@@ -1082,6 +1082,7 @@ def var_descriptor(obj, _prev_obs=None, _tag_generator=None):
location dependent information such as the id of a node. location dependent information such as the id of a node.
""" """
global hashlib
if hashlib is None: if hashlib is None:
try: try:
import hashlib import hashlib
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论