def convert_to_numpy(value):
    """
    Converts the given Tensor to a numpy.

    Parameters
    ----------
    value : object
        An object whose type has a registered Tensor conversion function.

    Returns
    -------
        A value based on tensor.

    Examples
    ---------
    >>> import tensorlayerx as tlx
    >>> x = tlx.ops.ones(shape=(10, 10))
    >>> y = tlx.ops.convert_to_numpy(x)

    """

    return value.numpy()