提交 33ded753 authored 作者: Frederic's avatar Frederic

Add assert to detect futur potential scipy change.

上级 fdb4028d
......@@ -149,6 +149,8 @@ class SparseType(gof.Type):
def get_shape_info(self, obj):
obj = self.filter(obj)
assert obj.indices.dtype == 'int32'
assert obj.indptr.dtype == 'int32'
return (obj.shape, obj.data.size,
obj.indices.size, obj.indptr.size, obj.nnz)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论