def add_layers(self): self.conv2d0 = helper_layers.ReluLayer() self.maxpool0 = helper_layers.MaxPool2dLayer() self.conv2d1 = helper_layers.ReluLayer() self.conv2d2 = helper_layers.ReluLayer() self.maxpool1 = helper_layers.MaxPool2dLayer() self.mixed3a_pool = helper_layers.MaxPool2dLayer() self.mixed3a_1x1 = helper_layers.ReluLayer() self.mixed3a_3x3_bottleneck = helper_layers.ReluLayer() self.mixed3a_5x5_bottleneck = helper_layers.ReluLayer() self.mixed3a_pool_reduce = helper_layers.ReluLayer() self.mixed3a_3x3 = helper_layers.ReluLayer() self.mixed3a_5x5 = helper_layers.ReluLayer() self.mixed3a = helper_layers.CatLayer() self.mixed3b_pool = helper_layers.MaxPool2dLayer() self.mixed3b_1x1 = helper_layers.ReluLayer() self.mixed3b_3x3_bottleneck = helper_layers.ReluLayer() self.mixed3b_5x5_bottleneck = helper_layers.ReluLayer() self.mixed3b_pool_reduce = helper_layers.ReluLayer() self.mixed3b_3x3 = helper_layers.ReluLayer() self.mixed3b_5x5 = helper_layers.ReluLayer() self.mixed3b = helper_layers.CatLayer() self.maxpool4 = helper_layers.MaxPool2dLayer() self.mixed4a_pool = helper_layers.MaxPool2dLayer() self.mixed4a_1x1 = helper_layers.ReluLayer() self.mixed4a_3x3_bottleneck = helper_layers.ReluLayer() self.mixed4a_5x5_bottleneck = helper_layers.ReluLayer() self.mixed4a_pool_reduce = helper_layers.ReluLayer() self.mixed4a_3x3 = helper_layers.ReluLayer() self.mixed4a_5x5 = helper_layers.ReluLayer() self.mixed4a = helper_layers.CatLayer() self.mixed4b_pool = helper_layers.MaxPool2dLayer() self.mixed4b_1x1 = helper_layers.ReluLayer() self.mixed4b_3x3_bottleneck = helper_layers.ReluLayer() self.mixed4b_5x5_bottleneck = helper_layers.ReluLayer() self.mixed4b_pool_reduce = helper_layers.ReluLayer() self.mixed4b_3x3 = helper_layers.ReluLayer() self.mixed4b_5x5 = helper_layers.ReluLayer() self.mixed4b = helper_layers.CatLayer() self.mixed4c_pool = helper_layers.MaxPool2dLayer() self.mixed4c_1x1 = helper_layers.ReluLayer() self.mixed4c_3x3_bottleneck = helper_layers.ReluLayer() self.mixed4c_5x5_bottleneck = helper_layers.ReluLayer() self.mixed4c_pool_reduce = helper_layers.ReluLayer() self.mixed4c_3x3 = helper_layers.ReluLayer() self.mixed4c_5x5 = helper_layers.ReluLayer() self.mixed4c = helper_layers.CatLayer() self.mixed4d_pool = helper_layers.MaxPool2dLayer() self.mixed4d_1x1 = helper_layers.ReluLayer() self.mixed4d_3x3_bottleneck = helper_layers.ReluLayer() self.mixed4d_5x5_bottleneck = helper_layers.ReluLayer() self.mixed4d_pool_reduce = helper_layers.ReluLayer() self.mixed4d_3x3 = helper_layers.ReluLayer() self.mixed4d_5x5 = helper_layers.ReluLayer() self.mixed4d = helper_layers.CatLayer() self.mixed4e_pool = helper_layers.MaxPool2dLayer() self.mixed4e_1x1 = helper_layers.ReluLayer() self.mixed4e_3x3_bottleneck = helper_layers.ReluLayer() self.mixed4e_5x5_bottleneck = helper_layers.ReluLayer() self.mixed4e_pool_reduce = helper_layers.ReluLayer() self.mixed4e_3x3 = helper_layers.ReluLayer() self.mixed4e_5x5 = helper_layers.ReluLayer() self.mixed4e = helper_layers.CatLayer() self.maxpool10 = helper_layers.MaxPool2dLayer() self.mixed5a_pool = helper_layers.MaxPool2dLayer() self.mixed5a_1x1 = helper_layers.ReluLayer() self.mixed5a_3x3_bottleneck = helper_layers.ReluLayer() self.mixed5a_5x5_bottleneck = helper_layers.ReluLayer() self.mixed5a_pool_reduce = helper_layers.ReluLayer() self.mixed5a_3x3 = helper_layers.ReluLayer() self.mixed5a_5x5 = helper_layers.ReluLayer() self.mixed5a = helper_layers.CatLayer() self.mixed5b_pool = helper_layers.MaxPool2dLayer() self.mixed5b_1x1 = helper_layers.ReluLayer() self.mixed5b_3x3_bottleneck = helper_layers.ReluLayer() self.mixed5b_5x5_bottleneck = helper_layers.ReluLayer() self.mixed5b_pool_reduce = helper_layers.ReluLayer() self.mixed5b_3x3 = helper_layers.ReluLayer() self.mixed5b_5x5 = helper_layers.ReluLayer() self.mixed5b = helper_layers.CatLayer() self.softmax2 = helper_layers.SoftMaxLayer()
def add_layers(self): self.conv1_relu_7x7 = helper_layers.ReluLayer() self.conv2_relu_3x3_reduce = helper_layers.ReluLayer() self.conv2_relu_3x3 = helper_layers.ReluLayer() self.inception_3a_relu_1x1 = helper_layers.ReluLayer() self.inception_3a_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_3a_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_3a_relu_pool_proj = helper_layers.ReluLayer() self.inception_3a_relu_5x5 = helper_layers.ReluLayer() self.inception_3a_relu_3x3 = helper_layers.ReluLayer() self.inception_3b_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_3b_relu_1x1 = helper_layers.ReluLayer() self.inception_3b_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_3b_relu_pool_proj = helper_layers.ReluLayer() self.inception_3b_relu_3x3 = helper_layers.ReluLayer() self.inception_3b_relu_5x5 = helper_layers.ReluLayer() self.inception_4a_relu_1x1 = helper_layers.ReluLayer() self.inception_4a_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_4a_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_4a_relu_pool_proj = helper_layers.ReluLayer() self.inception_4a_relu_3x3 = helper_layers.ReluLayer() self.inception_4a_relu_5x5 = helper_layers.ReluLayer() self.inception_4b_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_4b_relu_1x1 = helper_layers.ReluLayer() self.inception_4b_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_4b_relu_pool_proj = helper_layers.ReluLayer() self.inception_4b_relu_5x5 = helper_layers.ReluLayer() self.inception_4b_relu_3x3 = helper_layers.ReluLayer() self.inception_4c_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_4c_relu_1x1 = helper_layers.ReluLayer() self.inception_4c_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_4c_relu_pool_proj = helper_layers.ReluLayer() self.inception_4c_relu_5x5 = helper_layers.ReluLayer() self.inception_4c_relu_3x3 = helper_layers.ReluLayer() self.inception_4d_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_4d_relu_1x1 = helper_layers.ReluLayer() self.inception_4d_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_4d_relu_pool_proj = helper_layers.ReluLayer() self.inception_4d_relu_3x3 = helper_layers.ReluLayer() self.inception_4d_relu_5x5 = helper_layers.ReluLayer() self.inception_4e_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_4e_relu_1x1 = helper_layers.ReluLayer() self.inception_4e_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_4e_relu_pool_proj = helper_layers.ReluLayer() self.inception_4e_relu_5x5 = helper_layers.ReluLayer() self.inception_4e_relu_3x3 = helper_layers.ReluLayer() self.inception_5a_relu_1x1 = helper_layers.ReluLayer() self.inception_5a_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_5a_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_5a_relu_pool_proj = helper_layers.ReluLayer() self.inception_5a_relu_5x5 = helper_layers.ReluLayer() self.inception_5a_relu_3x3 = helper_layers.ReluLayer() self.inception_5b_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_5b_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_5b_relu_1x1 = helper_layers.ReluLayer() self.inception_5b_relu_pool_proj = helper_layers.ReluLayer() self.inception_5b_relu_3x3 = helper_layers.ReluLayer() self.inception_5b_relu_5x5 = helper_layers.ReluLayer() self.pool1_3x3_s2 = helper_layers.MaxPool2dLayer() self.pool2_3x3_s2 = helper_layers.MaxPool2dLayer() self.inception_3a_pool = helper_layers.MaxPool2dLayer() self.inception_3b_pool = helper_layers.MaxPool2dLayer() self.pool3_3x3_s2 = helper_layers.MaxPool2dLayer() self.inception_4a_pool = helper_layers.MaxPool2dLayer() self.inception_4b_pool = helper_layers.MaxPool2dLayer() self.inception_4c_pool = helper_layers.MaxPool2dLayer() self.inception_4d_pool = helper_layers.MaxPool2dLayer() self.inception_4e_pool = helper_layers.MaxPool2dLayer() self.pool4_3x3_s2 = helper_layers.MaxPool2dLayer() self.inception_5a_pool = helper_layers.MaxPool2dLayer() self.inception_5b_pool = helper_layers.MaxPool2dLayer() self.inception_3a_output = helper_layers.CatLayer() self.inception_3b_output = helper_layers.CatLayer() self.inception_4a_output = helper_layers.CatLayer() self.inception_4b_output = helper_layers.CatLayer() self.inception_4c_output = helper_layers.CatLayer() self.inception_4d_output = helper_layers.CatLayer() self.inception_4e_output = helper_layers.CatLayer() self.inception_5a_output = helper_layers.CatLayer() self.inception_5b_output = helper_layers.CatLayer() self.pool5_drop_7x7_s1 = helper_layers.DropoutLayer()
def add_layers(self): self.relu1 = helper_layers.ReluLayer() self.relu_conv2_1x1 = helper_layers.ReluLayer() self.relu2_3x3 = helper_layers.ReluLayer() self.relu_inception_3a_5x5_reduce = helper_layers.ReluLayer() self.reulu_inception_3a_3x3_reduce = helper_layers.ReluLayer() self.relu_inception_3a_1x1 = helper_layers.ReluLayer() self.relu_inception_3a_pool_proj = helper_layers.ReluLayer() self.relu_inception_3a_5x5 = helper_layers.ReluLayer() self.relu_inception_3a_3x3 = helper_layers.ReluLayer() self.relu_inception_3b_1x1 = helper_layers.ReluLayer() self.relu_inception_3b_3x3_reduce = helper_layers.ReluLayer() self.relu_inception_3b_5x5_reduce = helper_layers.ReluLayer() self.relu_inception_3b_pool_proj = helper_layers.ReluLayer() self.relu_inception_3b_3x3 = helper_layers.ReluLayer() self.relu_inception_3b_5x5 = helper_layers.ReluLayer() self.relu_inception_4a_3x3_reduce = helper_layers.ReluLayer() self.relu_inception_4a_5x5_reduce = helper_layers.ReluLayer() self.relu_inception_4a_1x1 = helper_layers.ReluLayer() self.relu_inception_4a_pool_proj = helper_layers.ReluLayer() self.relu_inception_4a_3x3 = helper_layers.ReluLayer() self.relu_inception_4a_5x5 = helper_layers.ReluLayer() self.inception_4b_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_4b_relu_1x1 = helper_layers.ReluLayer() self.inception_4b_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_4b_relu_pool_proj = helper_layers.ReluLayer() self.inception_4b_relu_3x3 = helper_layers.ReluLayer() self.inception_4b_relu_5x5 = helper_layers.ReluLayer() self.inception_4c_relu_1x1 = helper_layers.ReluLayer() self.inception_4c_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_4c_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_4c_relu_pool_proj = helper_layers.ReluLayer() self.inception_4c_relu_5x5 = helper_layers.ReluLayer() self.inception_4c_relu_3x3 = helper_layers.ReluLayer() self.inception_4d_relu_1x1 = helper_layers.ReluLayer() self.inception_4d_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_4d_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_4d_relu_pool_proj = helper_layers.ReluLayer() self.inception_4d_relu_3x3 = helper_layers.ReluLayer() self.inception_4d_relu_5x5 = helper_layers.ReluLayer() self.inception_4e_relu_1x1 = helper_layers.ReluLayer() self.inception_4e_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_4e_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_4e_relu_pool_proj = helper_layers.ReluLayer() self.inception_4e_relu_3x3 = helper_layers.ReluLayer() self.inception_4e_relu_5x5 = helper_layers.ReluLayer() self.inception_5a_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_5a_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_5a_relu_1x1 = helper_layers.ReluLayer() self.inception_5a_relu_pool_proj = helper_layers.ReluLayer() self.inception_5a_relu_5x5 = helper_layers.ReluLayer() self.inception_5a_relu_3x3 = helper_layers.ReluLayer() self.inception_5b_relu_3x3_reduce = helper_layers.ReluLayer() self.inception_5b_relu_1x1 = helper_layers.ReluLayer() self.inception_5b_relu_5x5_reduce = helper_layers.ReluLayer() self.inception_5b_relu_pool_proj = helper_layers.ReluLayer() self.inception_5b_relu_3x3 = helper_layers.ReluLayer() self.inception_5b_relu_5x5 = helper_layers.ReluLayer() self.pool1 = helper_layers.MaxPool2dLayer() self.pool2 = helper_layers.MaxPool2dLayer() self.inception_3a_pool = helper_layers.MaxPool2dLayer() self.inception_3b_pool = helper_layers.MaxPool2dLayer() self.pool3 = helper_layers.MaxPool2dLayer() self.inception_4a_pool = helper_layers.MaxPool2dLayer() self.inception_4b_pool = helper_layers.MaxPool2dLayer() self.inception_4c_pool = helper_layers.MaxPool2dLayer() self.inception_4d_pool = helper_layers.MaxPool2dLayer() self.inception_4e_pool = helper_layers.MaxPool2dLayer() self.pool4 = helper_layers.MaxPool2dLayer() self.inception_5a_pool = helper_layers.MaxPool2dLayer() self.inception_5b_pool = helper_layers.MaxPool2dLayer() self.inception_3a_output = helper_layers.CatLayer() self.inception_3b_output = helper_layers.CatLayer() self.inception_4a_output = helper_layers.CatLayer() self.inception_4b_output = helper_layers.CatLayer() self.inception_4c_output = helper_layers.CatLayer() self.inception_4d_output = helper_layers.CatLayer() self.inception_4e_output = helper_layers.CatLayer() self.inception_5a_output = helper_layers.CatLayer() self.inception_5b_output = helper_layers.CatLayer() self.pool5_drop = helper_layers.DropoutLayer()