[Prim][PIR] Add the dynamic shape test case for scale_grad, square_grad, transpose_grad and swiglu_grad #67590
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Category
Operator Mechanism
PR Types
New features
Description
为scale_grad, square_grad, transpose_grad, swiglu_grad添加动态shape单测
本次PR修改了backwar_util.py中列表的顺序(字母序排列),并且将原本冗余堆积在一起的test_prim_sub_graph_backward_dynamic_shape.py文件拆分成了5个文件,test_prim_sub_graph_backward_dynamic_shape.py仍然保留基类单测,其他的文件格式如下test_prim_sub_graph_{算子首字母集合}_backward_dynamic_shape.py,比如test_prim_sub_graph_abcde_backward_dynamic_shape.py则表示了算子首字母在集合{a,b,c,d,e}中的算子,并且每个文件内部也是按照字母序进行排序,希望后续开发者也能遵守规则,在适当的文件中按照字母序添加对应的算子,以此减少每次PR的冲突。