提交 c840f595 authored 作者: Nicolas Bouchard's avatar Nicolas Bouchard 提交者: Frederic

Typo in docstrings

上级 214cffcc
...@@ -1013,9 +1013,10 @@ class StrucutedAddSVCSR(gof.Op): ...@@ -1013,9 +1013,10 @@ class StrucutedAddSVCSR(gof.Op):
:return: A sparse matrix containing the addition of the vector to :return: A sparse matrix containing the addition of the vector to
the data of the sparse matrix. the data of the sparse matrix.
:note: The a_* are the properties of a sparse matrix in csr :note:
format. This op is used as an optimization for - The a_* are the properties of a sparse matrix in csr
StructuredAddSV. format.
- This op is used as an optimization for StructuredAddSV.
""" """
def __eq__(self, other): def __eq__(self, other):
...@@ -1165,6 +1166,8 @@ class SamplingDot(gof.op.Op): ...@@ -1165,6 +1166,8 @@ class SamplingDot(gof.op.Op):
than DOT because SamplingDot requires X to be a MxK matrix while Y than DOT because SamplingDot requires X to be a MxK matrix while Y
is a NxK matrix instead of the usual KxN matrix. is a NxK matrix instead of the usual KxN matrix.
.. note::
It will work if the pattern is not binary value, but if the It will work if the pattern is not binary value, but if the
pattern doesn't have a high sparsity proportion it will be slower pattern doesn't have a high sparsity proportion it will be slower
then a more optimized dot followed by a normal elemwise then a more optimized dot followed by a normal elemwise
...@@ -1251,9 +1254,11 @@ class SamplingDotCsr(gof.Op): ...@@ -1251,9 +1254,11 @@ class SamplingDotCsr(gof.Op):
:return: A sparse matrix containing the dot product of `x` by `y`. :return: A sparse matrix containing the dot product of `x` by `y`.
:note: If we have the input of mixed dtype, we insert cast elemwise :note:
- If we have the input of mixed dtype, we insert cast elemwise
in the graph to be able to call blas function as they don't in the graph to be able to call blas function as they don't
allow mixed dtype. allow mixed dtype.
- This op is used as an optimization for SamplingDot.
""" """
def __eq__(self, other): def __eq__(self, other):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论