mindspore.device_context.ascend.op_tuning.aclnn_cache ====================================================== .. 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/device_context/mindspore.device_context.ascend.op_tuning.aclnn_cache.rst :alt: 查看源文件 .. py:function:: mindspore.device_context.ascend.op_tuning.aclnn_cache(enable_global_cache=False, cache_queue_length=10000) 配置aclnn单算子缓存参数。 参数: - **enable_global_cache** (bool) - 配置全局缓存,默认为False,此参数只在GRAPH模式下生效。 - ``"False"``: 关闭全局缓存。 - ``"True"``: 开启全局缓存。 - **cache_queue_length** (int,可选) - 配置aclnn缓存队列的长度,默认值:``10000``。