Skip to content

Commit

Permalink
graph: backend: dnnl: enable block format in large partition kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
rongzha1 authored Jan 22, 2025
1 parent f95a8c5 commit edf4a4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/graph/backend/dnnl/kernels/large_partition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ void larger_partition_kernel_t::setup_pipeline_stage1(
void larger_partition_kernel_t::setup_pipeline_stage2(pass_pipeline_t &pipeline,
memory_planner_t &mem_planner, bool enable_constant_cache) {
pipeline.reset_visualize_arg(true, false);
// do constant propagation here so that we can
// prepare constant info for other optimizations.
if (enable_constant_cache) {
BACKEND_DNNL_ADD_PASS(pipeline, constant_propagation);
}
BACKEND_DNNL_ADD_PASS(pipeline, infer_shape);
BACKEND_DNNL_ADD_PASS(pipeline, fuse_src_transpose_to_matmul);
BACKEND_DNNL_ADD_PASS(pipeline, fuse_dst_transpose_to_matmul);
Expand Down

0 comments on commit edf4a4f

Please sign in to comment.