forked from mindspore-Ecosystem/mindspore
!1033 fix addn error in pynative mode when inputs number over 1000
Merge pull request !1033 from chujinjin/fix_addn_in_pynative_mode
This commit is contained in:
commit
ebfdfacd7c
|
@ -240,6 +240,7 @@ void RunOpAscendBackendIRFusionOptimization(const std::shared_ptr<session::Kerne
|
|||
auto ir_fusion_pm = std::make_shared<PassManager>("ir_fusion_pm");
|
||||
ir_fusion_pm->AddPass(std::make_shared<BnSplit>());
|
||||
ir_fusion_pm->AddPass(std::make_shared<TopKSplit>());
|
||||
ir_fusion_pm->AddPass(std::make_shared<AddnFission>());
|
||||
|
||||
optimizer->AddPassManager(ir_fusion_pm);
|
||||
(void)optimizer->Optimize(kernel_graph);
|
||||
|
|
Loading…
Reference in New Issue