提交 f3478776 authored 作者: Iban Harlouchet's avatar Iban Harlouchet

numpydoc for theano/sparse/sharedvar.py

上级 38e3c3b2
...@@ -12,9 +12,11 @@ class SparseTensorSharedVariable(_sparse_py_operators, SharedVariable): ...@@ -12,9 +12,11 @@ class SparseTensorSharedVariable(_sparse_py_operators, SharedVariable):
@shared_constructor @shared_constructor
def sparse_constructor(value, name=None, strict=False, allow_downcast=None, def sparse_constructor(value, name=None, strict=False, allow_downcast=None,
borrow=False, format=None): borrow=False, format=None):
"""SharedVariable Constructor for SparseType """
SharedVariable Constructor for SparseType.
writeme writeme
""" """
if not isinstance(value, scipy.sparse.spmatrix): if not isinstance(value, scipy.sparse.spmatrix):
raise TypeError("Expected a sparse matrix in the sparse shared variable constructor. Received: ", raise TypeError("Expected a sparse matrix in the sparse shared variable constructor. Received: ",
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论