def exp2(x):
    """Calculate the base-2 exponential of all elements in the input tensor.

    Args:
        x: Input tensor.

    Returns:
        Output tensor, element-wise base-2 exponential of `x`.
    """
    if any_symbolic_tensors((x,)):
        return Exp2().symbolic_call(x)
    return backend.numpy.exp2(x)
Calculate the base-2 exponential of all elements in the input tensor.

    Args:
        x: Input tensor.

    Returns:
        Output tensor, element-wise base-2 exponential of `x`.
    
keras/src/ops/numpy.py