提交 908684a5 编写于 作者: Q Qiao Longfei

change the largest size of assign

上级 0384f330
...@@ -334,7 +334,7 @@ def assign(input, output=None, init_once=False): ...@@ -334,7 +334,7 @@ def assign(input, output=None, init_once=False):
values = [int(v) for v in input.flat] values = [int(v) for v in input.flat]
else: else:
raise ValueError("Unsupported dtype %s", input.dtype) raise ValueError("Unsupported dtype %s", input.dtype)
if input.size > 1024 * 1024: if input.size > 1024 * 1024 * 5:
raise ValueError("The size of input is too big. Please consider " raise ValueError("The size of input is too big. Please consider "
"saving it to file and 'load_op' to load it") "saving it to file and 'load_op' to load it")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册