提交 b257a8ad authored 作者: David Warde-Farley's avatar David Warde-Farley

Use logging infrastructure in place of print

上级 ccaaf770
...@@ -376,7 +376,7 @@ class MatrixInverse(Op): ...@@ -376,7 +376,7 @@ class MatrixInverse(Op):
try: try:
z[0] = numpy.linalg.inv(x).astype(x.dtype) z[0] = numpy.linalg.inv(x).astype(x.dtype)
except numpy.linalg.LinAlgError: except numpy.linalg.LinAlgError:
print 'Failed to invert', node.inputs[0] logger.debug('Failed to invert %s' % str(node.inputs[0]))
raise raise
def grad(self, inputs, g_outputs): def grad(self, inputs, g_outputs):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论