<commit_before>Functions
=========

.. module:: chainer.functions

Chainer provides variety of built-in function implementations in :mod:`chainer.functions` package.
These functions return a :class:`~chainer.Variable` object or a tuple of multiple :class:`~chainer.Variable` objects.

.. note::
    Functions implemented in Chainer consists of the following two parts:<commit_msg>Add doc on compatibility between variables and arrays<commit_after>Functions
=========

.. module:: chainer.functions

Chainer provides variety of built-in function implementations in :mod:`chainer.functions` package.
These functions usually return a :class:`~chainer.Variable` object or a tuple of multiple :class:`~chainer.Variable` objects.
For a :class:`~chainer.Variable` argument of a function, an :ref:`ndarray` can be passed if you do not need its gradient.
Some functions additionally supports scalar arguments.

.. note::
    Functions implemented in Chainer consists of the following two parts:
{'fraction_non_alphanumeric': 0.09847715736040609, 'fraction_numerical': 0.0, 'mean_word_length': 5.529801324503311, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5881825', 'n_tokens_mistral': 244, 'n_tokens_neox': 237, 'n_words': 106}