提交 17cdcd77 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

shared variable constructor for sparse matrices

上级 5dde739d
...@@ -149,6 +149,8 @@ class Apply(utils.object2): ...@@ -149,6 +149,8 @@ class Apply(utils.object2):
:returns: an Apply instance with the same op but different outputs. :returns: an Apply instance with the same op but different outputs.
""" """
# !!
strict = False
remake_node = False remake_node = False
for curr, new in zip(self.inputs, inputs): for curr, new in zip(self.inputs, inputs):
if not curr.type == new.type: if not curr.type == new.type:
......
...@@ -12,4 +12,6 @@ except ImportError: ...@@ -12,4 +12,6 @@ except ImportError:
sys.stderr.write("WARNING: scipy can't be imported. We disable the sparse matrix code.") sys.stderr.write("WARNING: scipy can't be imported. We disable the sparse matrix code.")
if enable_sparse: if enable_sparse:
from basic import * from basic import *
import sharedvar
from sharedvar import sparse_constructor as shared
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论