提交 c461c59d authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Change some logger names to match more closely their module name.

上级 c14d99ea
......@@ -9,7 +9,7 @@ import warnings
import theano
_logger = logging.getLogger('theano.config')
_logger = logging.getLogger('theano.configparser')
class TheanoConfigWarning(Warning):
......
......@@ -495,7 +495,7 @@ class Op(utils.object2, PureOp, CLinkerOp):
the thunk can potentially cache return values (like CLinker does),
then it must not do so for variables in the no_recycling list.
"""
logger = logging.getLogger('theano.Op')
logger = logging.getLogger('theano.gof.Op')
node_input_storage = [storage_map[r] for r in node.inputs]
node_output_storage = [storage_map[r] for r in node.outputs]
......
......@@ -15,7 +15,7 @@ from theano.gof.python25 import any
from theano.compile import Function, debugmode
from theano.compile.profilemode import ProfileMode
_logger=logging.getLogger("theano.tensor.basic")
_logger=logging.getLogger("theano.printing")
def _info(*msg):
_logger.info(' '.join(msg))
def _warn(*msg):
......
......@@ -19,7 +19,7 @@ from theano import tensor
from theano.tensor.nnet import softplus
from theano.sandbox.softsign import softsign
_logger = logging.getLogger('driver_kouh')
_logger = logging.getLogger('theano.sandbox.cuda.tests.test_bench_loopfusion')
def _shared_uniform(rng, low, high, size, dtype, name=None):
return shared(
......
......@@ -54,7 +54,7 @@ import scan_utils
from scan_utils import clone
# Logging function for sending warning or info
_logger = logging.getLogger('theano.scan')
_logger = logging.getLogger('theano.scan_module')
def warning(*msg):
_logger.warning('WARNING theano.scan: '+' '.join(msg))
......
......@@ -56,7 +56,7 @@ from theano.sandbox import cuda
from theano.updates import Updates
# Logging function for sending warning or info
_logger = logging.getLogger('theano.scan')
_logger = logging.getLogger('theano.scan_module.scan')
def warning(*msg):
_logger.warning('WARNING theano.scan: '+' '.join(msg))
......
......@@ -35,7 +35,7 @@ import scan_utils
from scan_utils import safe_new, safe_to_cpu, traverse
# Logging function for sending warning or info
_logger = logging.getLogger('theano.scan_op')
_logger = logging.getLogger('theano.scan_module.scan_op')
def warning(*msg):
......
......@@ -18,7 +18,7 @@ import logging
import scan
# Logging function for sending warning or info
_logger = logging.getLogger('theano.scan_views')
_logger = logging.getLogger('theano.scan_module.scan_views')
def warning(*msg):
_logger.warning('WARNING theano.scan: '+' '.join(msg))
......
......@@ -30,7 +30,7 @@ try:
except ImportError:
pass
_logger=logging.getLogger("theano.signal.conv")
_logger=logging.getLogger("theano.tensor.nnet.conv")
def _debug(*msg):
_logger.debug(' '.join([ str(x) for x in msg]))
def _warn(*msg):
......
......@@ -13,7 +13,7 @@ from theano import gof, Op, tensor, config
from theano.tensor.nnet import conv
import logging
_logger=logging.getLogger("theano.signal.conv")
_logger=logging.getLogger("theano.tensor.signal.conv")
def _debug(*msg):
_logger.debug(' '.join(msg))
def _warn(*msg):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论