提交 e003f1e6 authored 作者: Frederic Bastien's avatar Frederic Bastien

In sparse.CSMProperties, don't put the last return as view, as we create a new…

In sparse.CSMProperties, don't put the last return as view, as we create a new ndarray from a tuple.
上级 9b4af0ce
...@@ -309,7 +309,8 @@ class SparseValue(gof.Value, _sparse_py_operators): ...@@ -309,7 +309,8 @@ class SparseValue(gof.Value, _sparse_py_operators):
class CSMProperties(gof.Op): class CSMProperties(gof.Op):
"""Extract all of .data .indices and .indptr""" """Extract all of .data .indices and .indptr"""
view_map = {0:[0],1:[0],2:[0],3:[0]} #we don't return a view of the shape, we create a new ndarray from the shape tuple.
view_map = {0:[0],1:[0],2:[0]}
kmap = None kmap = None
""" WRITEME """ """ WRITEME """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论