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

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

src/p/y/pylearn2-HEAD/pylearn2/linear/tests/test_conv2d_c01b.py   pylearn2(Download)
import theano
from theano import tensor
import numpy
from pylearn2.linear.conv2d_c01b import (Conv2D, make_random_conv2D,
    make_sparse_random_conv2D, setup_detector_layer_c01b)
        )
        self.filters = sharedX(self.filters_values, name='filters')
        self.conv2d = Conv2D(self.filters)
 
    def test_get_params(self):
        axes = (0, 'b', 1, 'c')
        mapping = tuple(axes.index(axis) for axis in default_axes)
        conv2d = Conv2D(self.filters, output_axes=axes)
        f_axes = theano.function([self.image_tensor],
                                 conv2d.lmul(self.image_tensor))
        filters = sharedX(filters_values)
        image = numpy.random.rand(32, 3, 3, 1).astype(theano.config.floatX)
        conv2d = Conv2D(filters)
        f = theano.function([self.image_tensor],
                            conv2d.lmul(self.image_tensor))