function pad1d_(x, paddings, constantValue = 0) {
    (0, _util.assert)(paddings.length === 2, ()=>"Invalid number of paddings. Must be length of 2.");
    return (0, _pad.pad)(x, [
        paddings
    ], constantValue);
}
Pads a `tf.Tensor1D` with a given value and paddings. See `pad` for details.