| 424 | } // namespace |
| 425 | |
| 426 | void fuse_reduce::apply(module_pass_manager& mpm) const |
| 427 | { |
| 428 | if(enabled(MIGRAPHX_DISABLE_REDUCE_FUSION{})) |
| 429 | return; |
| 430 | create_reduce_modules(mpm); |
| 431 | mpm.run_pass(dead_code_elimination{}); |
| 432 | for(int i = 0; i < 4; i++) |
| 433 | { |
| 434 | if(enable_rewrite_reshapes) |
| 435 | mpm.run_pass(rewrite_reshapes<reduce_reshape>{}); |
| 436 | match::find_matches( |
| 437 | mpm, find_reduce_pointwise{}, find_pointwise_reduce{}, find_reduce_reduce{}); |
| 438 | mpm.run_pass(dead_code_elimination{}); |
| 439 | } |
| 440 | } |
| 441 | |
| 442 | } // namespace MIGRAPHX_INLINE_NS |
| 443 | } // namespace migraphx |
no test coverage detected