提交 6d0539d9 authored 作者: ChienliMa's avatar ChienliMa

add argument ```storage_map``` to other makers except ```Profile_Maker```

上级 3a3a8f08
......@@ -2525,7 +2525,7 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions
self.mode = mode
self.output_keys = output_keys
def create(self, defaults=None, trustme=False):
def create(self, defaults=None, trustme=False, storage_map=None):
"""
Create a function.
......@@ -2633,7 +2633,8 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions
defaults = _defaults
# Get a function instance
_fn, _i, _o = self.linker.make_thunk(input_storage=input_storage)
_fn, _i, _o = self.linker.make_thunk(input_storage=input_storage,
storage_map=storage_map)
fn = self.function_builder(_fn, _i, _o, self.indices,
self.outputs, defaults, self.unpack_single,
self.return_none, self.output_keys, self)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论