<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pad(x, p=3):
 """Pad tensor in H, W Remarks: TensorFlow uses "ceil(input_spatial_shape[i] / strides[i])" rather than explicit padding like Caffe, pyTorch does. Hence, we need to pad here beforehand. Args: x (tf.tensor):
 incoming tensor p (int, optional):
 padding for H, W Returns: tf.tensor: padded tensor """

    return tf.pad(x, [[0, 0], [0, 0], [p, p], [p, p]])