提交 47d35383 authored 作者: Frederic's avatar Frederic

remove CSMGrad view_map as it was always allocating memory.

This only remove warning from DebugMode.
上级 1f424195
......@@ -802,8 +802,10 @@ class CSMGrad(gof.op.Op):
def __init__(self, kmap=None):
self.kmap = kmap
if self.kmap is None:
self.view_map = {0: [1]}
#This class always allocate a new output.
#I keep this here to help GD understand what this kmap think is.
#if self.kmap is None:
# self.view_map = {0: [1]}
def __eq__(self, other):
return type(self) == type(other) and _kmap_eq(self.kmap, other.kmap)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论