提交 4d1535d0 authored 作者: Frederic's avatar Frederic

fix import and pep8

上级 38a1316e
...@@ -2,11 +2,11 @@ import numpy ...@@ -2,11 +2,11 @@ import numpy
import scipy.sparse import scipy.sparse
from theano import gof, tensor from theano import gof, tensor
from theano.tensor.opt import register_specialize
from theano.sparse.basic import ( from theano.sparse.basic import (
as_sparse_variable, SparseType, add_s_s, neg, as_sparse_variable, SparseType, add_s_s, neg,
mul_s_s, mul_s_d, dot, mul_s_s, mul_s_d, dot,
CSMProperties, CSM, register_specialize, CSMProperties, CSM,
_is_sparse_variable, _is_dense_variable, CSC, CSR, _is_sparse_variable, _is_dense_variable, CSC, CSR,
csm_properties, csm_data, csm_indices, csm_indptr, csm_shape, csm_properties, csm_data, csm_indices, csm_indptr, csm_shape,
_is_sparse, _is_sparse,
......
...@@ -152,4 +152,4 @@ def test_local_dense_from_sparse_sparse_from_dense(): ...@@ -152,4 +152,4 @@ def test_local_dense_from_sparse_sparse_from_dense():
f = theano.function([m], o, mode=mode) f = theano.function([m], o, mode=mode)
# We should just have a deep copy. # We should just have a deep copy.
assert len(f.maker.fgraph.apply_nodes) == 1 assert len(f.maker.fgraph.apply_nodes) == 1
f([[1,2], [3, 4]]) f([[1, 2], [3, 4]])
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论