In the Convolution2D docs of keras, I found there are no details on definition of padding
keras.layers.convolutional.Convolution2D(nb_filter,
nb_row,
nb_col,
init='glorot_uniform',
activation=None,
weights=None,
border_mode='valid',
subsample=(1, 1),
dim_ordering='default',
W_regularizer=None,
b_regularizer=None,
activity_regularizer=None,
W_constraint=None,
b_constraint=None,
bias=True)
the subsample
argument is
tuple of length 2. Factor by which to subsample output. Also called strides elsewhere.
and I think it is stride.
And the border_mode
argument is
'valid', 'same' or 'full'. ('full' requires the Theano backend.)
valid
and same
are also arguments in TensorFlow's conv2d function.
How to define the padding, how to set the value of it?