11c6bf1dbd051d087519ff771b39dac600c0d96d,batchflow/models/tf/encoder_decoder.py,EncoderDecoder,head,#Any#Any#Any#Any#,163

Before Change


                filters = channels
            elif isinstance(filters, int):
                if filters != channels and "layout" in kwargs:
                    filters = [filters] * filters_needed(kwargs["layout"])

            if isinstance(filters, (list, tuple)) and len(filters) > 0:
                if isinstance(filters, tuple):

After Change



            channels = cls.num_channels(targets)
            if cls.num_channels(x) != channels:
                with tf.variable_scope("final"):
                    x = cls.crop(x, targets, kwargs["data_format"])
                    args = cls.combine_kwargs(kwargs, dict(layout="c", kernel_size=1, filters=channels))
                    x = conv_block(x, **args)

        return x

    @classmethod
    def block(cls, inputs, name="block", **kwargs):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: analysiscenter/batchflow
Commit Name: 11c6bf1dbd051d087519ff771b39dac600c0d96d
Time: 2019-07-29
Author: 7520522+a-arefina@users.noreply.github.com
File Name: batchflow/models/tf/encoder_decoder.py
Class Name: EncoderDecoder
Method Name: head


Project Name: analysiscenter/batchflow
Commit Name: 7fd49e352027b5e24d0f8ede917877e5d5ef945f
Time: 2017-11-10
Author: rhudor@gmail.com
File Name: dataset/models/tf/vgg.py
Class Name: VGG
Method Name: _build


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: f791b89909d8ac69cac38610a4b1ed31d219920d
Time: 2018-08-01
Author: chipn@nvidia.com
File Name: open_seq2seq/encoders/lm_encoders.py
Class Name: AWDLSTMEncoder
Method Name: _encode


Project Name: arnomoonens/yarll
Commit Name: 0a1844fe38592ba9797e37c920d6a9f745f217c0
Time: 2017-03-30
Author: x-006@hotmail.com
File Name: async_knowledge_transfer.py
Class Name: AsyncKnowledgeTransferLearner
Method Name: build_networks