提交 c56d10f2 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Delay import of theano.configdefaults.config in theano.gof.utils

上级 f9a54210
...@@ -4,8 +4,6 @@ import sys ...@@ -4,8 +4,6 @@ import sys
import traceback import traceback
from io import StringIO from io import StringIO
from theano.configdefaults import config
def simple_extract_stack(f=None, limit=None, skips=None): def simple_extract_stack(f=None, limit=None, skips=None):
"""This is traceback.extract_stack from python 2.7 with this change: """This is traceback.extract_stack from python 2.7 with this change:
...@@ -86,6 +84,8 @@ def add_tag_trace(thing, user_line=None): ...@@ -86,6 +84,8 @@ def add_tag_trace(thing, user_line=None):
we look. we look.
""" """
from theano.configdefaults import config
if user_line is None: if user_line is None:
user_line = config.traceback__limit user_line = config.traceback__limit
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论