90345f6069723476c534cdf943e962d26c810e56,python/baseline/pytorch/classify/model.py,ConvModel,_init_pool,#ConvModel#Any#,101

Before Change


        convs = []
        for i, fsz in enumerate(filtsz):
            pad = fsz//2
            conv = nn.Sequential(
                nn.Conv1d(dsz, cmotsz, fsz, padding=pad),
                pytorch_activation("relu")
            )
            convs.append(conv)
            // Add the module so its managed correctly
        self.convs = nn.ModuleList(convs)
        // Width of concat of parallel convs

After Change


        filtsz = kwargs["filtsz"]
        cmotsz = kwargs["cmotsz"]
        self.parallel_conv = ParallelConv(dsz, cmotsz, filtsz, "relu", self.pdrop)
        return self.parallel_conv.outsz

    def _pool(self, btc):
        embeddings = btc.transpose(1, 2).contiguous()
        return self.parallel_conv(embeddings)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dpressel/mead-baseline
Commit Name: 90345f6069723476c534cdf943e962d26c810e56
Time: 2018-05-24
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/classify/model.py
Class Name: ConvModel
Method Name: _init_pool


Project Name: bethgelab/foolbox
Commit Name: 0420ce7b8c82b035592e0360d8fd98fb7320e62d
Time: 2020-01-28
Author: git@jonasrauber.de
File Name: tests/conftest.py
Class Name:
Method Name: tensorflow_simple_sequential_cpu


Project Name: MolSSI/QCEngine
Commit Name: a5ee2e0ea284a9b024721536abb94b7998a9e8ee
Time: 2018-11-13
Author: malorian@me.com
File Name: qcengine/programs/torchani.py
Class Name:
Method Name: run_torchani