mindflow.operators.batched_jacobian
===================================

.. 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.6/docs/api_python/mindflow/operators/mindflow.operators.batched_jacobian.rst
    :alt: 查看源文件


.. py:function:: mindflow.operators.batched_jacobian(model)

    计算网络模型的雅可比矩阵。

    参数:
        - **model** (mindspore.nn.Cell) - 输入维度为in_channels输出维度为out_channels的网络模型。

    返回:
        Function,用于计算雅可比矩阵的Jacobian实例。输入维度为:[batch_size,in_channels],输出维度为:[out_channels,batch_size,in_channels]。

    .. note::
        要求MindSpore版本 >= 2.0.0调用如下接口: `mindspore.jacrev` 。