sciai.common.LeCunUniform
============================================

.. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.2/resource/_static/logo_source.svg
    :target: https://gitee.com/mindspore/mindscience/blob/r0.5/docs/api_python/sciai/common/sciai.common.LeCunUniform.rst
    :alt: 查看源文件


.. py:class:: sciai.common.LeCunUniform()

    生成一个服从Yan LeCun均匀分布
    :math:`{N}(-\text{boundary}, \text{boundary})` 的随机数组用于初始化Tensor,其中:

    .. math::

        boundary = \sqrt{\frac{3}{fan\_in}}

    `fan_in` 是权重Tensor中输入单元的数量。

    更多关于Yan LeCun均匀分布的细节请参考:
    `Neural Tangent Kernel: Convergence and Generalization in Neural Networks
    <https://proceedings.neurips.cc/paper/2018/hash/5a4be1fa34e62bb8a6ec6b91d2462f5a-Abstract.html>`_。