In the simplest case, the output value of the layer with input size \((N, C, L)\)
and output \((N, C, L_{out})\) can be precisely described as:
$$
out(N_i, C_j, k) = \max_{m=0, \ldots, \mbox{kernel\_size} - 1}
input(N_i, C_j, stride \times k + m)
$$
If padding
is non-zero, then the input is implicitly zero-padded on both sides
for padding
number of points. dilation
controls the spacing between the kernel points.
It is harder to describe, but this link
has a nice visualization of what dilation
does.