def __init__(self, n_output_chns=4, kernel_size=3, downsample_kernel_size=2, downsample_stride=2, acti_func='relu', w_initializer=None, w_regularizer=None, type_string='bn_acti_conv', name='res-downsample'):
    super(TrainableLayer, self).__init__(name=name)
    self.n_output_chns = n_output_chns
    self.kernel_size = kernel_size
    self.downsample_kernel_size = downsample_kernel_size
    self.downsample_stride = downsample_stride
    self.acti_func = acti_func
    self.conv_param = {'w_initializer': w_initializer, 'w_regularizer': w_regularizer}
    self.type_string = type_string
def __init__(self, n_output_chns=4, kernel_size=3, downsample_kernel_size=2, downsample_stride=2, acti_func='relu', w_initializer=None, w_regularizer=None, type_string='bn_acti_conv', name='res-downsample'):
    super(TrainableLayer, self).__init__(name=name)
    self.n_output_chns = n_output_chns
    self.kernel_size = kernel_size
    self.downsample_kernel_size = downsample_kernel_size
    self.downsample_stride = downsample_stride
    self.acti_func = acti_func
    self.conv_param = {'w_initializer': w_initializer, 'w_regularizer': w_regularizer}
    self.type_string = type_string