提交 f6b3d501 authored 作者: abalkin's avatar abalkin

Converted relative imports to absolute.

上级 490fc932
...@@ -15,8 +15,8 @@ import numpy ...@@ -15,8 +15,8 @@ import numpy
import theano import theano
from theano import gof from theano import gof
from theano.gof.python25 import partial from theano.gof.python25 import partial
import mode as mode_module import theano.compile.mode
from io import In, SymbolicInput, SymbolicInputKit, SymbolicOutput from theano.compile.io import In, SymbolicInput, SymbolicInputKit, SymbolicOutput
from theano.compile.ops import deep_copy_op, view_op from theano.compile.ops import deep_copy_op, view_op
import logging import logging
...@@ -945,7 +945,7 @@ class FunctionMaker(object): ...@@ -945,7 +945,7 @@ class FunctionMaker(object):
- 'ignore': do not do anything - 'ignore': do not do anything
- None: Use the value in the Theano flags on_unused_input - None: Use the value in the Theano flags on_unused_input
""" """
mode = mode_module.get_mode(mode) mode = theano.compile.mode.get_mode(mode)
# figure out which profile object to use (if any) # figure out which profile object to use (if any)
# to help with forward-porting ProfileMode, # to help with forward-porting ProfileMode,
...@@ -1025,7 +1025,7 @@ class FunctionMaker(object): ...@@ -1025,7 +1025,7 @@ class FunctionMaker(object):
# initialize the linker # initialize the linker
if not hasattr(linker, 'accept'): if not hasattr(linker, 'accept'):
raise ValueError("'linker' parameter of FunctionFactory should be a Linker with an accept method " \ raise ValueError("'linker' parameter of FunctionFactory should be a Linker with an accept method " \
"or one of %s" % mode_module.predefined_linkers.keys()) "or one of %s" % theano.compile.mode.predefined_linkers.keys())
#the 'no_borrow' outputs are the ones for which that we can't return the internal storage pointer. #the 'no_borrow' outputs are the ones for which that we can't return the internal storage pointer.
assert len(fgraph.outputs) == len(outputs + additional_outputs) assert len(fgraph.outputs) == len(outputs + additional_outputs)
...@@ -1274,7 +1274,7 @@ def orig_function(inputs, outputs, mode=None, accept_inplace=False, ...@@ -1274,7 +1274,7 @@ def orig_function(inputs, outputs, mode=None, accept_inplace=False,
# instance if necessary: # instance if necessary:
t1 = time.time() t1 = time.time()
mode = mode_module.get_mode(mode) mode = theano.compile.mode.get_mode(mode)
inputs = map(convert_function_input, inputs) inputs = map(convert_function_input, inputs)
if outputs is not None: if outputs is not None:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论