file_name="conv_same_padding_multi_stride.info"
)
- conv_layer_tc(strides=(3, 3))(file_name="conv_uneven_strides.info", debug="summary")
+ conv_layer_tc(strides=(3, 3))(file_name="conv_uneven_strides.info")
+
+ record(
+ file_name="conv_uneven_strides2.info",
+ model=[
+ K.Input(shape=(2, 4, 4)),
+ K.layers.Conv2D(filters=2, kernel_size=(2, 2), strides=(1, 2)),
+ K.layers.Activation("sigmoid"),
+ K.layers.Flatten(),
+ K.layers.Dense(10),
+ K.layers.Activation("softmax"),
+ ],
+ optimizer=opt.SGD(learning_rate=0.1),
+ iteration=10,
+ input_shape=(3, 2, 4, 4),
+ label_shape=(3, 10),
+ loss_fn_str="cross_softmax",
+ # debug="summary"
+ )
+
+ record(
+ file_name="conv_uneven_strides3.info",
+ model=[
+ K.Input(shape=(2, 4, 4)),
+ K.layers.Conv2D(filters=2, kernel_size=(2, 2), strides=(2, 1)),
+ K.layers.Activation("sigmoid"),
+ K.layers.Flatten(),
+ K.layers.Dense(10),
+ K.layers.Activation("softmax"),
+ ],
+ optimizer=opt.SGD(learning_rate=0.1),
+ iteration=10,
+ input_shape=(3, 2, 4, 4),
+ label_shape=(3, 10),
+ loss_fn_str="cross_softmax",
+ )
pool_layer_tc = lambda pool_layer: partial(
record,
}
);
+INI conv_uneven_strides2(
+ "conv_uneven_strides2",
+ {
+ nn_base + "learning_rate=0.1 | optimizer=sgd | loss=cross | batch_size=3",
+ I("input") + input_base + "input_shape=2:4:4",
+ I("conv2d_c1") + conv_base + "kernel_size = 2,2 | filters=2 | stride=1,2",
+ I("act_1") + sigmoid_base,
+ I("flatten", "type=flatten"),
+ I("outputlayer") + fc_base + "unit = 10",
+ I("act_2") + softmax_base
+ }
+);
+
+INI conv_uneven_strides3(
+ "conv_uneven_strides3",
+ {
+ nn_base + "learning_rate=0.1 | optimizer=sgd | loss=cross | batch_size=3",
+ I("input") + input_base + "input_shape=2:4:4",
+ I("conv2d_c1") + conv_base + "kernel_size = 2,2 | filters=2 | stride=2,1",
+ I("act_1") + sigmoid_base,
+ I("flatten", "type=flatten"),
+ I("outputlayer") + fc_base + "unit = 10",
+ I("act_2") + softmax_base
+ }
+);
+
INI conv_same_padding_multi_stride(
"conv_same_padding_multi_stride",
mkModelTc(conv_same_padding, "3:1:1:10", 10),
mkModelTc(conv_multi_stride, "3:1:1:10", 10),
mkModelTc(conv_uneven_strides, "3:1:1:10", 10),
+ mkModelTc(conv_uneven_strides2, "3:1:1:10", 10),
+ mkModelTc(conv_uneven_strides3, "3:1:1:10", 10),
mkModelTc(conv_same_padding_multi_stride, "3:1:1:10", 10),
mkModelTc(conv_no_loss_validate, "3:1:1:10", 1),
mkModelTc(conv_none_loss_validate, "3:1:1:10", 1),