def _pad(tensor, paddings, mode='CONSTANT', constant_values=0, name=None):
    return np.pad(tensor, paddings, mode=mode.lower(), constant_values=constant_values)
def _pad(tensor, paddings, mode='CONSTANT', constant_values=0, name=None):
    return np.pad(tensor, paddings, mode=mode.lower(), constant_values=constant_values)