4c50261df4847bdfd7c8067307e8532f96d04104,batchflow/models/torch/encoder_decoder.py,EncoderDecoder,decoder,#Any#Any#,147

Before Change


        -------
        nn.Module
        
        steps = kwargs.pop("num_stages", len(inputs)-1)
        factor = kwargs.pop("factor")

        if isinstance(factor, int):
            factor = int(factor ** (1/steps))
            factor = [factor] * steps
        elif not isinstance(factor, list):
            raise TypeError("factor should be int or list of int, but %s was given" % type(factor))

        x = inputs[-1]

After Change


    def decoder(cls, inputs, **kwargs):
        steps = kwargs.pop("num_stages") or len(inputs)-2
        skip, upsample, block_args = cls.pop(["skip", "upsample", "blocks"], kwargs)
        base_block = block_args.get("base")


        x = inputs[-1]
        decoders = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: analysiscenter/batchflow
Commit Name: 4c50261df4847bdfd7c8067307e8532f96d04104
Time: 2019-08-02
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/torch/encoder_decoder.py
Class Name: EncoderDecoder
Method Name: decoder


Project Name: analysiscenter/batchflow
Commit Name: 648c808a170a22d2cd6b0adbf2e680496d183661
Time: 2017-12-15
Author: a.kozhevin@analysiscenter.ru
File Name: dataset/models/tf/refinenet.py
Class Name: RefineNet
Method Name: head


Project Name: Scitator/catalyst
Commit Name: c5c350cf9f9b576cc9de939e4dc308404eb48852
Time: 2019-05-28
Author: scitator@gmail.com
File Name: catalyst/dl/experiments/experiment.py
Class Name: ConfigExperiment
Method Name: get_optimizer_and_model