提交 373eab13 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Clean up comments and docstrings in aesara.sparse

上级 d3ff35dc
差异被折叠。
...@@ -15,12 +15,6 @@ class SparseTensorSharedVariable(_sparse_py_operators, SharedVariable): ...@@ -15,12 +15,6 @@ class SparseTensorSharedVariable(_sparse_py_operators, SharedVariable):
def sparse_constructor( def sparse_constructor(
value, name=None, strict=False, allow_downcast=None, borrow=False, format=None value, name=None, strict=False, allow_downcast=None, borrow=False, format=None
): ):
"""
SharedVariable Constructor for SparseTensorType.
writeme
"""
if not isinstance(value, scipy.sparse.spmatrix): if not isinstance(value, scipy.sparse.spmatrix):
raise TypeError( raise TypeError(
"Expected a sparse matrix in the sparse shared variable constructor. Received: ", "Expected a sparse matrix in the sparse shared variable constructor. Received: ",
......
...@@ -29,17 +29,6 @@ def _is_sparse(x): ...@@ -29,17 +29,6 @@ def _is_sparse(x):
class SparseTensorType(TensorType, HasDataType): class SparseTensorType(TensorType, HasDataType):
"""A `Type` for sparse tensors. """A `Type` for sparse tensors.
Parameters
----------
dtype : numpy dtype string such as 'int64' or 'float64' (among others)
Type of numbers in the matrix.
format: str
The sparse storage strategy.
Returns
-------
An empty SparseVariable instance.
Notes Notes
----- -----
Currently, sparse tensors can only be matrices (i.e. have two dimensions). Currently, sparse tensors can only be matrices (i.e. have two dimensions).
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论