提交 1c9db81d authored 作者: Frederic Bastien's avatar Frederic Bastien

Added a string name to the op SpSum

上级 ce5695c1
......@@ -46,6 +46,9 @@ class SpSum(Op):
def __hash__(self):
return 76324 ^ hash(type(self)) ^ hash(self.axis)
def __str__(self):
return self.__class__.__name__+"{axis=%s}" % str(self.axis)
def make_node(self, x):
###
# At least for small matrices (5x5), the .sum() method of a csc matrix returns a dense matrix
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论