提交 ef638c6a authored 作者: Joseph Turian's avatar Joseph Turian

Small changes to testing

上级 aaaad6b5
......@@ -5,11 +5,7 @@ import compile
import gradient
from sparse import _is_dense, _is_sparse, _is_dense_result, _is_sparse_result
""" Types of sparse matrices to use for testing """
_mtypes = [sparse.csc_matrix, sparse.csr_matrix]
#_mtypes = [sparse.csc_matrix, sparse.csr_matrix, sparse.dok_matrix, sparse.lil_matrix, sparse.coo_matrix]
_mtype_to_str = {sparse.csc_matrix: "csc", sparse.csr_matrix: "csr"}
from sparse import _mtypes, _mtype_to_str
class T_transpose(unittest.TestCase):
def setUp(self):
......
......@@ -14,6 +14,11 @@ import gof.op, gof.result
import tensor
""" Types of sparse matrices to use for testing """
_mtypes = [sparse.csc_matrix, sparse.csr_matrix]
#_mtypes = [sparse.csc_matrix, sparse.csr_matrix, sparse.dok_matrix, sparse.lil_matrix, sparse.coo_matrix]
_mtype_to_str = {sparse.csc_matrix: "csc", sparse.csr_matrix: "csr"}
## Type checking
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论