提交 a074daae authored 作者: Marc-Alexandre Cote's avatar Marc-Alexandre Cote

Adressed @abergeron comment on copying variable sub and not using it.

上级 c7c25604
...@@ -291,7 +291,6 @@ class GpuCumsum(CumsumOp, GpuOp): ...@@ -291,7 +291,6 @@ class GpuCumsum(CumsumOp, GpuOp):
axis = self.axis if self.axis is not None else 0 axis = self.axis if self.axis is not None else 0
fail = sub['fail'] fail = sub['fail']
sub = sub.copy()
max_threads_dim0 = self.max_threads_dim0 max_threads_dim0 = self.max_threads_dim0
max_grid_size1 = self.max_grid_size1 max_grid_size1 = self.max_grid_size1
if max_threads_dim0 is None or max_grid_size1 is None: if max_threads_dim0 is None or max_grid_size1 is None:
...@@ -299,7 +298,6 @@ class GpuCumsum(CumsumOp, GpuOp): ...@@ -299,7 +298,6 @@ class GpuCumsum(CumsumOp, GpuOp):
"directly. It should be called by " "directly. It should be called by "
"make_thunk() that add some information " "make_thunk() that add some information "
"related to the selected GPU.") "related to the selected GPU.")
sub.update(locals())
code = """ code = """
const int* shape = CudaNdarray_HOST_DIMS(%(x)s); const int* shape = CudaNdarray_HOST_DIMS(%(x)s);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论