Warning when calling DenseFromSparse was generating way too much output. Removed…

Warning when calling DenseFromSparse was generating way too much output. Removed printing of matrix values in warning.
上级 de0ea07b
...@@ -419,7 +419,7 @@ class DenseFromSparse(gof.op.Op): ...@@ -419,7 +419,7 @@ class DenseFromSparse(gof.op.Op):
broadcastable = (False, False)).make_result()]) broadcastable = (False, False)).make_result()])
def perform(self, node, (x, ), (out, )): def perform(self, node, (x, ), (out, )):
if _is_dense(x): if _is_dense(x):
print >> sys.stderr, "WARNING: You just called DenseFromSparse on a dense matrix:", x print >> sys.stderr, "WARNING: You just called DenseFromSparse on a dense matrix."
out[0] = x out[0] = x
else: else:
out[0] = x.toarray() out[0] = x.toarray()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论