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
@classmethod
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")
In pattern: SUPERPATTERN
Frequency: 11
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: 21b6ca6fb83d82d2a5080b74e0bec6c34e68cda3
Time: 2017-11-23
Author: rhudor@gmail.com
File Name: dataset/models/tf/densenet.py
Class Name: DenseNet
Method Name: body
Project Name: MolSSI/QCEngine
Commit Name: e5fa5b3d6c77618aae53b450d549531942cadffa
Time: 2021-02-10
Author: max.scheurer@me.com
File Name: qcengine/programs/adcc.py
Class Name: AdccHarness
Method Name: compute
Project Name: analysiscenter/batchflow
Commit Name: 5bfdba356f31723366a17dbc2421f345c9273199
Time: 2017-11-28
Author: rhudor@gmail.com
File Name: dataset/models/tf/resnet.py
Class Name: ResNet
Method Name: block
Project Name: analysiscenter/batchflow
Commit Name: a8ec6ab10253c73beb693c78bf71f733e659dce9
Time: 2017-11-18
Author: rhudor@gmail.com
File Name: dataset/models/tf/fcn.py
Class Name: FCN8
Method Name: body
Project Name: analysiscenter/batchflow
Commit Name: a8ec6ab10253c73beb693c78bf71f733e659dce9
Time: 2017-11-18
Author: rhudor@gmail.com
File Name: dataset/models/tf/fcn.py
Class Name: FCN16
Method Name: body
Project Name: arviz-devs/arviz
Commit Name: 259010ab242cc109b2b8dfbb20812d27b812dd14
Time: 2020-06-01
Author: aloctavodia@gmail.com
File Name: arviz/plots/loopitplot.py
Class Name:
Method Name: plot_loo_pit
Project Name: allenai/allennlp
Commit Name: 40ec35876d38c4797ad3ee9bf911b019faa5a61d
Time: 2017-08-25
Author: mattg@allenai.org
File Name: allennlp/nn/initializers.py
Class Name: InitializerApplicator
Method Name: from_params
Project Name: onnx/onnx-tensorflow
Commit Name: 1d453ac8fb41ccd5591d051bc56d2899aa6f2e17
Time: 2020-01-29
Author: wtsang@us.ibm.com
File Name: onnx_tf/handlers/backend/eye_like.py
Class Name: EyeLike
Method Name: version_9
Project Name: analysiscenter/batchflow
Commit Name: 21b6ca6fb83d82d2a5080b74e0bec6c34e68cda3
Time: 2017-11-23
Author: rhudor@gmail.com
File Name: dataset/models/tf/resnet.py
Class Name: ResNet
Method Name: body
Project Name: matplotlib/matplotlib
Commit Name: 9c7f926d6d70a994c3710ce570bb9807519ef090
Time: 2019-01-17
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_agg.py
Class Name: FigureCanvasAgg
Method Name: print_png