提交 4934189c authored 作者: Tanjay94's avatar Tanjay94

Fixed rebasing error.

上级 3a591778
...@@ -992,8 +992,10 @@ class SparseFromDense(gof.op.Op): ...@@ -992,8 +992,10 @@ class SparseFromDense(gof.op.Op):
return [shapes[0]] return [shapes[0]]
csr_from_dense = SparseFromDense('csr') csr_from_dense = SparseFromDense('csr')
"""Convert a dense matrix to a sparse csr matrix. csc_from_dense = SparseFromDense('csc')
"""Convert a dense matrix to a sparse matrix.
:param x: A dense matrix.
:return: The same as `x` in a sparse matrix format.
""" """
# Indexing # Indexing
...@@ -1027,29 +1029,6 @@ class GetItemList(gof.op.Op): ...@@ -1027,29 +1029,6 @@ class GetItemList(gof.op.Op):
get_item_list = GetItemList() get_item_list = GetItemList()
class GetItem2d(gof.op.Op):
"""Implement a subtensor of sparse variable and that return a
sparse matrix.
>>>>>>> Added Fancy Indexing for sparse matrix.
:return: The same as `x` in a sparse matrix format.
:note: The grad implementation is regular, i.e.
not structured.
"""
csc_from_dense = SparseFromDense('csc')
"""Convert a dense matrix to a sparse csc matrix.
:param x: A dense matrix.
:return: The same as `x` in a sparse matrix format.
:note: The grad implementation is regular, i.e.
not structured.
"""
# Indexing # Indexing
class GetItem2d(gof.op.Op): class GetItem2d(gof.op.Op):
# See doc in instance of this Op or function after this class definition. # See doc in instance of this Op or function after this class definition.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论