# -------------------------------------------------------------------------
# This file is part of the MindStudio project.
# Copyright (c) 2025 Huawei Technologies Co.,Ltd.
#
# MindStudio is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#
# http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# -------------------------------------------------------------------------
"""
Aclnn operator alias CLI.
"""
from atk.bin.op_alias import build_alias_cli
cli = build_alias_cli(
"aclnn",
"""
运行 ACLNN 算子测试的简化入口。
options 为执行可选参数,详细用法参考 docs/ATK使用指南/examples/用例执行/README.md。
基本格式:
atk aclnn <case_file> [options]
默认行为:
- 待测后端为 ACLNN
- 标杆后端为 cpu
- 未指定 --task 时默认执行 accuracy
- 若 case_file 同目录下只有一个 function_*.py,会自动加载该插件
示例:
atk aclnn aclnn_max.json
atk aclnn aclnn_max.json --task performance_device --plugin function_max.py
""",
)