提交 82e09e85 authored 作者: ChienliMa's avatar ChienliMa

Change interface of FunctionMaker.create()

上级 90d490c1
...@@ -1422,7 +1422,7 @@ class FunctionMaker(object): ...@@ -1422,7 +1422,7 @@ class FunctionMaker(object):
"'%s'.\nValid values are 'raise', " "'%s'.\nValid values are 'raise', "
"'warn', and 'ignore'." % on_unused_input) "'warn', and 'ignore'." % on_unused_input)
def create(self, input_storage=None, trustme=False): def create(self, input_storage=None, trustme=False, storage_map = None):
""" """
Create a function. Create a function.
...@@ -1503,7 +1503,7 @@ class FunctionMaker(object): ...@@ -1503,7 +1503,7 @@ class FunctionMaker(object):
try: try:
theano.config.traceback.limit = 0 theano.config.traceback.limit = 0
_fn, _i, _o = self.linker.make_thunk( _fn, _i, _o = self.linker.make_thunk(
input_storage=input_storage_lists) input_storage=input_storage_lists, storage_map = storage_map)
finally: finally:
theano.config.traceback.limit = limit_orig theano.config.traceback.limit = limit_orig
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论