提交 916d2267 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix typo, use logger instead of print, split long line.

上级 0f54f86e
...@@ -742,9 +742,11 @@ try: ...@@ -742,9 +742,11 @@ try:
#RETURN (gpu ptr size, cpu ptr size, int sizes) #RETURN (gpu ptr size, cpu ptr size, int sizes)
t = cuda_ndarray.cuda_ndarray.ptr_int_size() t = cuda_ndarray.cuda_ndarray.ptr_int_size()
gpu_ptr_size, cpu_ptr_size, int_size = t gpu_ptr_size, cpu_ptr_size, int_size = t
except Exceptin, e: except Exception, e:
print "OPTIMIZATION WARNING: Got the next error, but we can ignore. This could cause less GpuElemwise fused together." _logger.warning(("OPTIMIZATION WARNING: "
print e "Got the following error, but we can ignore it. "
"This could cause less GpuElemwise fused together.\n"
"%s") % e)
def max_inputs_to_GpuElemwise(node): def max_inputs_to_GpuElemwise(node):
""" """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论