提交 b89f9007 authored 作者: Frederic's avatar Frederic

Added doc string.

上级 e9a30042
...@@ -618,6 +618,9 @@ class DenseFromSparse(gof.op.Op): ...@@ -618,6 +618,9 @@ class DenseFromSparse(gof.op.Op):
dense_from_sparse = DenseFromSparse() dense_from_sparse = DenseFromSparse()
class SparseFromDense(gof.op.Op): class SparseFromDense(gof.op.Op):
"""
Convert an `ndarray` matrix to a sparse matrix.
"""
def __init__(self, format): def __init__(self, format):
self.format = format self.format = format
def __eq__(self, other): def __eq__(self, other):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论