def spatial_2d_padding(x, padding=(1, 1), dim_ordering='th'):
    if dim_ordering == 'th':
        pattern = [[0, 0], [0, 0],
                   [padding[0], padding[0]], [padding[1], padding[1]]]
    else:
        pattern = [[0, 0],
                   [padding[0], padding[0]], [padding[1], padding[1]],
                   [0, 0]]
    return tf.pad(x, pattern)
:returns: process return code
dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py/spatial_2d_padding--crossover with--dataset/ETHPy150Open dcos/dcos-cli/cli/dcoscli/marathon/main.py/_info