MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / apply

Method apply

src/fuse_pointwise_reduce.cpp:46–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void fuse_pointwise_reduce::apply(module_pass_manager& mpm) const
47{
48 mpm.run_pass(fuse_pointwise{.enable_rewrite_reshapes = false});
49 mpm.run_pass(optimize_module{});
50 mpm.run_pass(fuse_reduce{.enable_rewrite_reshapes = false});
51 mpm.run_pass(fuse_pointwise{.enable_rewrite_reshapes = true});
52 mpm.run_pass(fuse_reduce{.enable_rewrite_reshapes = true});
53 mpm.run_pass(split_reduce{.split_size = get_split_size(split_size)});
54 mpm.run_pass(fuse_pointwise{.enable_rewrite_broadcasts = true});
55 if(not enabled(MIGRAPHX_DISABLE_MULTI_OUTPUT_FUSION{}))
56 {
57 mpm.run_pass(fuse_pointwise{.enable_multi_output = true});
58 }
59}
60
61} // namespace MIGRAPHX_INLINE_NS
62} // namespace migraphx

Callers

nothing calls this directly

Calls 3

get_split_sizeFunction · 0.85
enabledFunction · 0.70
run_passMethod · 0.45

Tested by

no test coverage detected