4c50261df4847bdfd7c8067307e8532f96d04104,batchflow/models/torch/encoder_decoder.py,EncoderDecoder,decoder,#Any#Any#,147
Before Change
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]
for i in range(steps):
x = cls.upsample(x, factor=factor[i], **kwargs)
After Change
x = inputs[-1]
decoders = []
for i in range(steps):
x = DecoderBlock(x, inputs[-i-3] , i, upsample, block_args, **kwargs)
decoders.append(x)
return decoders
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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: arraiy/torchgeometry
Commit Name: 18400c318402676d51533676d7862fbbe0df616f
Time: 2020-07-29
Author: edgar.riba@gmail.com
File Name: kornia/filters/filter.py
Class Name:
Method Name: filter2D
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 6cb598773a2f4cde366cb0bd9b3638f8a51bd1e8
Time: 2020-05-03
Author: irinutza.n@gmail.com
File Name: art/classifiers/ensemble.py
Class Name: EnsembleClassifier
Method Name: __init__