提交 07ec3ea1 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

simplified synthesis of final version tuple

上级 ee75da59
...@@ -1504,9 +1504,7 @@ class GpuCAReduce(GpuOp): ...@@ -1504,9 +1504,7 @@ class GpuCAReduce(GpuOp):
op_version = self.scalar_op.cuda_assign_reduce_code_cache_version() op_version = self.scalar_op.cuda_assign_reduce_code_cache_version()
if op_version: if op_version:
# our version is 0 # our version is 0
rval = [0] rval = (0,) + op_version
rval.extend(op_version)
rval = tuple(rval)
return rval return rval
else: else:
# we can't support caching if the op doesn't # we can't support caching if the op doesn't
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论