de6a2feddaaa87c34784b9319427360ac086be1a,examples/ResNet/imagenet-resnet.py,Model,__init__,#Model#Any#Any#,24
Before Change
self.mode = mode
basicblock = preresnet_basicblock if mode == "preact" else resnet_basicblock
bottleneck = {
"resnet": resnet_bottleneck,
"resnext32x4d": resnext_32x4d_bottleneck,
"preact": preresnet_bottleneck,
"se": se_resnet_bottleneck}[mode]
self.num_blocks, self.block_func = {
18: ([2, 2, 2, 2], basicblock),
34: ([3, 4, 6, 3], basicblock),
After Change
101: ([3, 4, 23, 3], bottleneck),
152: ([3, 8, 36, 3], bottleneck)
}[depth]
assert self.block_func is not None, \
"(mode={}, depth={}) not implemented!".format(mode, depth)
def get_logits(self, image):
with argscope([Conv2D, MaxPooling, GlobalAvgPooling, BatchNorm], data_format=self.data_format):
return resnet_backbone(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: tensorpack/tensorpack
Commit Name: de6a2feddaaa87c34784b9319427360ac086be1a
Time: 2019-08-24
Author: ppwwyyxx@users.noreply.github.com
File Name: examples/ResNet/imagenet-resnet.py
Class Name: Model
Method Name: __init__
Project Name: rail-berkeley/softlearning
Commit Name: cfe2fda04c7de2e0ef4df609455ccbe81678bb56
Time: 2018-07-17
Author: kristian.hartikainen@gmail.com
File Name: examples/mujoco_all_sac.py
Class Name:
Method Name: run_experiment
Project Name: home-assistant/home-assistant
Commit Name: c863b9614cf5d1cc132aff664530d673ac6afb3d
Time: 2018-04-12
Author: I@YONSM.NET
File Name: tests/components/homekit/test_type_sensors.py
Class Name: TestHomekitSensors
Method Name: test_humidity