mindspore.get_auto_parallel_context ==================================== .. 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/mindspore/mindspore.get_auto_parallel_context.rst :alt: 查看源文件 .. py:function:: mindspore.get_auto_parallel_context(attr_key) 根据key获取自动并行的配置。 参数: - **attr_key** (str) - 配置的key。 返回: 根据key返回配置的值。 异常: - **ValueError** - 输入key不在自动并行的配置列表中。