c15b97458069ea19aa0def4259264ae0c2b32644,batchflow/models/eager_torch/resnet.py,ResNet,body,#Any#Any#,82
Before Change
print(kwargs)
for num_block, filter, downsample_block in zip(num_blocks, filters, downsample_body):
downsample_block = [downsample_block] + [False] * (num_block - 1)
for block, downsample in zip(range(num_block), downsample_block):
// block_params["downsample"] = downsample
// block_params["filter"] = filter
// print(downsample, filter, dict(block_params))
x = ResBlock(inputs=x, downsample=downsample, filter=filter, **block_params)
print(x)
// layout, filter, downsample, bottleneck, resnext):
downsample = False
// kwargs = cls.get_defaults("body", kwargs)
// filters, block_args = cls.pop(["filters", "block"], kwargs)
// block_args = {**kwargs, **block_args}
After Change
for num_resblocks, filter, downsample in zip(num_blocks, filters, downsample_layer):
for idx_resblock in range(num_resblocks):
downsample = downsample if idx_resblock == 0 else False
resblock_args.update({"filters": filter, "downsample": downsample})
print(resblock_args)
// x = ResBlock(**resblock_args)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances
Project Name: analysiscenter/batchflow
Commit Name: c15b97458069ea19aa0def4259264ae0c2b32644
Time: 2019-11-19
Author: dimonovez@gmail.com
File Name: batchflow/models/eager_torch/resnet.py
Class Name: ResNet
Method Name: body
Project Name: scipy/scipy
Commit Name: 41da32116d1834958b5cc335c9ec9478b74ef01e
Time: 2014-06-15
Author: cairj3@mail2.sysu.edu.cn
File Name: scipy/cluster/vq.py
Class Name:
Method Name: _kmeans2
Project Name: dataiku/dataiku-contrib
Commit Name: 6eaab0148daf02fb02ac4ed1eca8d182b246e1f0
Time: 2020-04-03
Author: jeremy.greze@dataiku.com
File Name: googlesheets/python-connectors/googlesheets-sheet/connector.py
Class Name: MyCustomDatasetWriter
Method Name: flush
Project Name: MTG/freesound
Commit Name: 0f7bacc26eec44c9f00f5d7666c1f87f0e051ce2
Time: 2017-11-10
Author: andres.ferraro@upf.edu
File Name: search/management/commands/post_dirty_sounds_to_solr.py
Class Name: Command
Method Name: handle
Project Name: home-assistant/home-assistant
Commit Name: 625319846c77b37a9f2a5ffcf8d3be311cd534fe
Time: 2016-10-03
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/homematic.py
Class Name:
Method Name: _get_devices