提交 f27555e7 authored 作者: Frederic's avatar Frederic

Don't change the defaul log level during import. Otherwise, the user can't get…

Don't change the defaul log level during import. Otherwise, the user can't get the log level he want during theano import. fix gh-2130
上级 a4178507
......@@ -8,7 +8,6 @@ from theano import config
from theano.gof.cc import get_module_cache
_logger = logging.getLogger('theano.bin.theano-cache')
_logger.setLevel(logging.WARN)
def print_help(exit_status):
......
......@@ -18,7 +18,6 @@ disable that plugin.
import logging
_logger = logging.getLogger('theano.bin.theano-nose')
_logger.setLevel(logging.WARN)
import os
import nose
......
......@@ -97,7 +97,6 @@ AddConfigVar('DebugMode.check_preallocated_output_ndim',
import logging
_logger = logging.getLogger("theano.compile.debugmode")
_logger.setLevel(logging.WARNING)
# Filter to avoid duplicating optimization warnings
......
......@@ -70,7 +70,6 @@ from theano.gof import cmodule
import logging
_logger = logging.getLogger("theano.gof.cc")
_logger.setLevel(logging.WARN)
from theano.gof.callcache import CallCache
......
......@@ -68,7 +68,6 @@ AddConfigVar('cmodule.preload_cache',
in_c_key=False)
_logger = logging.getLogger("theano.gof.cmodule")
_logger.setLevel(logging.WARNING)
METH_VARARGS = "METH_VARARGS"
METH_NOARGS = "METH_NOARGS"
......
......@@ -11,8 +11,6 @@ import logging
from theano import config
_logger = logging.getLogger("theano.gof.compilelock")
# INFO will show the the messages "Refreshing lock" message
_logger.setLevel(logging.INFO)
# In seconds, time that a process will wait before deciding to override an
# existing lock. An override only happens when the existing lock is held by
......
......@@ -16,7 +16,6 @@ import nvcc_compiler
_logger_name = 'theano.sandbox.cuda'
_logger = logging.getLogger(_logger_name)
_logger.setLevel(logging.WARNING)
AddConfigVar('pycuda.init',
"""If True, always initialize PyCUDA when Theano want to
......
......@@ -31,8 +31,6 @@ from theano.sandbox.cuda.elemwise import NaiveAlgo
_logger_name = 'theano.sandbox.cuda.basic_ops'
_logger = logging.getLogger(_logger_name)
_logger.setLevel(logging.INFO)
_logger.addHandler(logging.StreamHandler()) # TO REMOVE
def as_cuda_ndarray_variable(x):
......
......@@ -20,8 +20,6 @@ from theano import gof, scalar, tensor
_logger_name = 'theano.sandbox.cuda.elemwise'
_logger = logging.getLogger(_logger_name)
_logger.setLevel(logging.INFO)
_logger.addHandler(logging.StreamHandler()) #TO REMOVE
def _logical_scalar(x):
......
......@@ -19,7 +19,6 @@ from theano.gof.python25 import any
from theano.misc.windows import output_subprocess_Popen
_logger = logging.getLogger("theano.sandbox.cuda.nvcc_compiler")
_logger.setLevel(logging.WARN)
from theano.configparser import (config, AddConfigVar, StrParam,
BoolParam, ConfigParam)
......
......@@ -7,7 +7,6 @@ from theano.compile import optdb
_logger_name = 'theano.sandbox.gpuarray'
_logger = logging.getLogger(_logger_name)
_logger.setLevel(logging.WARNING)
error = _logger.error
info = _logger.info
......
......@@ -13,7 +13,6 @@ from theano.gof import cmodule
_logger = logging.getLogger('theano.scan_module.scan_perform')
_logger.setLevel(logging.WARN)
version = 0.283 # must match constant returned in function get_version()
......
......@@ -12,7 +12,6 @@ from theano import config
from theano.gof.cmodule import GCC_compiler
_logger = logging.getLogger('theano.tensor.blas')
#_logger.setLevel(logging.INFO)
def detect_macos_sdot_bug():
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论