mindspore.parallel.build_searched_strategy
============================================================================

.. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg
    :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/parallel/mindspore.parallel.build_searched_strategy.rst
    :alt: 查看源文件


.. py:function:: mindspore.parallel.build_searched_strategy(strategy_filename)

    网络中每个参数的构建策略,用于分布式推理的场景。

    参数:
        - **strategy_filename** (str) - 策略文件的名称。

    返回:
        Dict,key为参数名,value为该参数的切片策略。

    异常:
        - **ValueError** - 策略文件不正确。
        - **TypeError** - `strategy_filename` 不是字符串类型。