ba201ede312a093d737fd5932624c0293d45d5ea,tensorflow2/tf2cv/models/hardnet.py,HarDNet,__init__,#HarDNet#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,352
Before Change
self.data_format = data_format
activation = "relu6"
self.features = tf.keras.Sequential(name="features")
self.features.add(HarDInitBlock(
in_channels=in_channels,
out_channels=init_block_channels,
use_deptwise=use_deptwise,
activation=activation,
data_format=data_format,
name="init_block"))
for i, (in_channels_list_i, out_channels_list_i) in enumerate(zip(unit_in_channels, unit_out_channels)):
stage = tf.keras.Sequential(name="stage{}".format(i + 1))
for j, (in_channels_list_ij, out_channels_list_ij) in enumerate(zip(in_channels_list_i,
out_channels_list_i)):
use_dropout = ((j == len(in_channels_list_i) - 1) and (i == len(unit_in_channels) - 1) and
use_last_dropout)
downsampling = ((j == len(in_channels_list_i) - 1) and (i != len(unit_in_channels) - 1))
stage.add(HarDUnit(
in_channels_list=in_channels_list_ij,
out_channels_list=out_channels_list_ij,
links_list=unit_links[i][j],
use_deptwise=use_deptwise,
use_dropout=use_dropout,
downsampling=downsampling,
activation=activation,
data_format=data_format,
name="unit{}".format(j + 1)))
self.features.add(stage)
in_channels = unit_out_channels[-1][-1][-1]
self.features.add(nn.AveragePooling2D(
pool_size=7,
strides=1,
data_format=data_format,
name="final_pool"))
self.output1 = tf.keras.Sequential(name="output1")
self.output1.add(nn.Dropout(
rate=output_dropout_rate,
name="dropout"))
After Change
self.data_format = data_format
activation = "relu6"
self.features = SimpleSequential(name="features")
self.features.add(HarDInitBlock(
in_channels=in_channels,
out_channels=init_block_channels,
use_deptwise=use_deptwise,
In pattern: SUPERPATTERN
Frequency: 14
Non-data size: 6
Instances
Project Name: osmr/imgclsmob
Commit Name: ba201ede312a093d737fd5932624c0293d45d5ea
Time: 2020-12-24
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/hardnet.py
Class Name: HarDNet
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: ba201ede312a093d737fd5932624c0293d45d5ea
Time: 2020-12-24
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/hardnet.py
Class Name: HarDNet
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: 153f04caa2e21f4b6de56becd6ade91f9f97bf11
Time: 2020-12-29
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/vgg.py
Class Name: VGG
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: 153f04caa2e21f4b6de56becd6ade91f9f97bf11
Time: 2020-12-29
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/senet.py
Class Name: SENet
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: 8fca19d8073a844102fae53337ac1c8428ad400c
Time: 2020-12-29
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/seresnet.py
Class Name: SEResNet
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: c53631530649b0c7140496eb837b8034589b38a0
Time: 2020-12-12
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/alexnet.py
Class Name: AlexNet
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: 153f04caa2e21f4b6de56becd6ade91f9f97bf11
Time: 2020-12-29
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/mixnet.py
Class Name: MixNet
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: 8fca19d8073a844102fae53337ac1c8428ad400c
Time: 2020-12-29
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/fbnet.py
Class Name: FBNet
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: 8fca19d8073a844102fae53337ac1c8428ad400c
Time: 2020-12-29
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/mobilenetv3.py
Class Name: MobileNetV3
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: d46b515f49d38d097faac6f49410561c9774386a
Time: 2020-12-11
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/mobilenetv2.py
Class Name: MobileNetV2
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: 8fca19d8073a844102fae53337ac1c8428ad400c
Time: 2020-12-29
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/mnasnet.py
Class Name: MnasNet
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: d1fc6deaab2f81284995d05eade0a0923af45dce
Time: 2020-10-17
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/resnet.py
Class Name: ResNet
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: 58e1dcfec5a11b557f583b7335ddf6b86eb4df79
Time: 2020-10-15
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/resneta.py
Class Name: ResNetA
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: 153f04caa2e21f4b6de56becd6ade91f9f97bf11
Time: 2020-12-29
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/menet.py
Class Name: MENet
Method Name: __init__
Project Name: osmr/imgclsmob
Commit Name: d293cb55a1252de8698d11f739753e255e5e2de9
Time: 2020-10-16
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/mobilenet.py
Class Name: MobileNet
Method Name: __init__