提交 d910b3fa authored 作者: Samira Shabanian's avatar Samira Shabanian

removed lines suggested by Fred and Abergeron

上级 c2a33f9a
...@@ -616,7 +616,6 @@ class CSM(gof.Op): ...@@ -616,7 +616,6 @@ class CSM(gof.Op):
""" """
__props__ = ('format',) __props__ = ('format',)
_hashval = None
""" """
Pre-computed hash value, defined by __init__. Pre-computed hash value, defined by __init__.
...@@ -628,13 +627,10 @@ class CSM(gof.Op): ...@@ -628,13 +627,10 @@ class CSM(gof.Op):
self.format = format self.format = format
if kmap is not None: if kmap is not None:
raise Exception("Do not use kmap, it is removed") raise Exception("Do not use kmap, it is removed")
self.kmap = kmap
# should view the other inputs too, but viewing multiple # should view the other inputs too, but viewing multiple
# inputs is not currently supported by the destroyhandler # inputs is not currently supported by the destroyhandler
self.view_map = {0: [0]} self.view_map = {0: [0]}
self._hashval = (hash(type(self)) ^ hash(self.format))
def make_node(self, data, indices, indptr, shape): def make_node(self, data, indices, indptr, shape):
data = tensor.as_tensor_variable(data) data = tensor.as_tensor_variable(data)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论