Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/y/pylearn2-HEAD/pylearn2/expr/tests/test_normalize.py   pylearn2(Download)
import theano.tensor as T
 
from pylearn2.expr.normalize import (CrossChannelNormalization,
                                     CrossChannelNormalizationBC01)
 
    c01b = rng.randn(*shape).astype(config.floatX)
 
    normalizer = CrossChannelNormalization(k=k, n=n, alpha=alpha, beta=beta)
    warnings.warn("TODO: add test for the CudaConvnet version.")
 
    X = T.TensorType(dtype=config.floatX, broadcastable=tuple([False]*4))()
 
    out = normalizer(X)