已合并
更新readme文件,方便ai进行读取并部署环境 #3467
关龙锋创建于 28 天前
更新readme文件,方便ai进行读取并部署环境 #3467
已合并
关龙锋创建于 28 天前
4 个文件变更+11-4
MCONTRIBUTING.md+1-1
@@ -31,7 +31,7 @@
31 编译完成后,会在`output/`目录下生成名为torchair-{version}-py3-none-any.whl的安装包文件,并且自动调用pip3进行安装。31 编译完成后,会在`output/`目录下生成名为torchair-{version}-py3-none-any.whl的安装包文件,并且自动调用pip3进行安装。
32 32 
33- 执行UT测试33- 执行UT测试
34- > 本地执行UT测试需要设置环境变量`ASCEND_CUSTOM_PATH`,将其指定至Ascend sdk的安装路径(指定至ai_cann_x86目录)34+ > 本地执行UT测试需要设置环境变量`ASCEND_CUSTOM_PATH`,将其指定至Ascend sdk的安装路径(指定至ai_cann_x86目录)或source 安装好的cann包路径即可(如source usr/local/Ascend/ascend-toolkit/latest/bin/setenv.bash)
35 35 
36 ```shell36 ```shell
37 ./build.sh -u37 ./build.sh -u
MREADME.md+1-1
@@ -150,7 +150,7 @@ TorchAir常用特性如下,全量特性介绍请访问[docs](docs/zh/_menu_tor
150 150 
151| TorchAir版本 | PyTorch版本 | TorchNPU版本 | CANN版本 | Python版本 |151| TorchAir版本 | PyTorch版本 | TorchNPU版本 | CANN版本 | Python版本 |
152|------------|-------------------------| ----------------- |---------|----------------------------------------------------------|152|------------|-------------------------| ----------------- |---------|----------------------------------------------------------|
153-| master(主线) | 2.6.0 + | 在研版本 | 在研版本 | Python3.9.x / Python3.10.x / Python3.11.x / Python3.12.x |153+| master(主线) | 2.7.1 + | 在研版本 | 在研版本 | Python3.10.x |
154| 7.3.0 | 2.6.0 / 2.7.1 / 2.8.0 | 7.3.0 | 8.5.0 | Python3.9.x / Python3.10.x / Python3.11.x |154| 7.3.0 | 2.6.0 / 2.7.1 / 2.8.0 | 7.3.0 | 8.5.0 | Python3.9.x / Python3.10.x / Python3.11.x |
155| 7.3.0 | 2.9.0 | 7.3.0 | 8.5.0 | Python3.9.x / Python3.10.x / Python3.11.x / Python3.12.x |155| 7.3.0 | 2.9.0 | 7.3.0 | 8.5.0 | Python3.9.x / Python3.10.x / Python3.11.x / Python3.12.x |
156| 7.2.0 | 2.1.0 | 7.2.0 | 8.3.RC1 | Python3.8.x / Python3.9.x / Python3.10.x / Python3.11.x |156| 7.2.0 | 2.1.0 | 7.2.0 | 8.3.RC1 | Python3.8.x / Python3.9.x / Python3.10.x / Python3.11.x |
Mbuild.sh+4-2
@@ -127,8 +127,10 @@ main() {
127 export NO_ASCEND_SDK=1127 export NO_ASCEND_SDK=1
128 else128 else
129 if [[ "X$ASCEND_HOME_PATH" = "X" ]]; then129 if [[ "X$ASCEND_HOME_PATH" = "X" ]]; then
130- echo "ASCEND_CUSTOM_PATH or ASCEND_HOME_PATH must be set when running ut or st"130+ # 如果没有设置$ASCEND_HOME_PATH可以尝试自动检测 CANN 安装路径,然后设置如
131- exit 1131+ # source usr/local/Ascend/ascend-toolkit/latest/bin/setenv.bash
132+ echo "ASCEND_CUSTOM_PATH or ASCEND_HOME_PATH must be set when running ut or st"
133+ exit 1
132 else134 else
133 echo "Building torchair with ascend-sdk in ${ASCEND_HOME_PATH}"135 echo "Building torchair with ascend-sdk in ${ASCEND_HOME_PATH}"
134 export ASCEND_SDK_PATH=${ASCEND_HOME_PATH}136 export ASCEND_SDK_PATH=${ASCEND_HOME_PATH}
Mtests/st/torchair_public_bindings_st.py+5-0
@@ -51,6 +51,11 @@ def is_not_compatibility(base_str, new_str, api_str=None):
51 51 
52 base_params = base_input_params[1:-1].split(",")52 base_params = base_input_params[1:-1].split(",")
53 new_params = new_input_params[1:-1].split(",")53 new_params = new_input_params[1:-1].split(",")
54+
55+ # Filter out 'boundary' parameter for Python 3.11+ Enum compatibility
56+ base_params = [p.strip() for p in base_params if "boundary" not in p]
57+ new_params = [p.strip() for p in new_params if "boundary" not in p]
58+
54 base_diff_params = set(base_params) - set(new_params)59 base_diff_params = set(base_params) - set(new_params)
55 60 
56 # case: delete/different default value/different parameter name/different parameter dtype61 # case: delete/different default value/different parameter name/different parameter dtype