function reverse2d_(x, axis) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "reverse");
    _util.assert($x.rank === 2, ()=>`Error in reverse2D: x must be rank 2 but got rank ${$x.rank}.`);
    return (0, _reverse.reverse)($x, axis);
}
Reverses a `tf.Tensor2D` along a specified axis.

@param x The input tensor.
@param axis The set of dimensions to reverse. Must be in the
    range [-rank(x), rank(x)). Defaults to all axes.