diff --git "a/AscendPytorch\346\250\241\345\236\213\344\274\227\346\231\272FAQ.md" "b/AscendPytorch\346\250\241\345\236\213\344\274\227\346\231\272FAQ.md" index d623500c413adef4efa8467fe6b1a904492b30f5..9c8ffcd4fa5c8e7575ec00b3199768d8e73666ab 100644 --- "a/AscendPytorch\346\250\241\345\236\213\344\274\227\346\231\272FAQ.md" +++ "b/AscendPytorch\346\250\241\345\236\213\344\274\227\346\231\272FAQ.md" @@ -451,6 +451,21 @@ StopIteration 修改代码中b的类型为long。 +### FAQ23、NPU训练时,第一个batch训练速度特别慢,第二个开始速度正常,和gpu差不多。 + +* 现象描述 + +无 + +* 原因分析 + + NPU是在线编译算子的,在执行第一步的时候会去编译算子,所以第一步会特别慢。 + +* 处理方法 + + 正常现象。 + + ## [2.2 NPU模型分布式运行常见问题FAQ](#22-NPU模型分布式运行常见问题FAQ) ### FAQ1、在模型分布式训练时,遇到报错 host not found.