diff --git a/sdk/load-and-run/src/mgblar.cpp b/sdk/load-and-run/src/mgblar.cpp index 9c4f1998f09f4d08b868018dad475a9b9af19f23..506998ae6c7916ca8c36ae5e603550cdc1c30f75 100644 --- a/sdk/load-and-run/src/mgblar.cpp +++ b/sdk/load-and-run/src/mgblar.cpp @@ -190,10 +190,6 @@ R"__usage__( --enable-jit Execute supported operators with JIT(now only support NVRTC). Can only be used on Nvidia GPUs. )__usage__" -R"__usage__( - --winograd-transform - Execute opr replace, replace weights by winograd transform. Currently support on conv bias opr. -)__usage__" R"__usage__( --enable-chwn4 Execute operators with kernels implemented in MegDNN with CHWN4 tensor format. Can only be used @@ -1391,11 +1387,6 @@ Args Args::from_argv(int argc, char **argv) { graph_opt.graph_opt.jit = 1; continue; } - if (!strcmp(argv[i], "--winograd-transform")) { - mgb_log_warn("enable winograd transform"); - graph_opt.graph_opt.weight_winograd_transform = true; - continue; - } if (!strcmp(argv[i], "--weight-preprocess")) { mgb_log_warn("enable weight-preprocess optimization"); graph_opt.graph_opt.enable_weight_preprocess(); diff --git a/src/core/include/megbrain/graph/cg.h b/src/core/include/megbrain/graph/cg.h index 86b04884351d04a8a8831537b936ca607f9cc260..fefe46af2f71205c66dfa6fb89c4375ed86e21e2 100644 --- a/src/core/include/megbrain/graph/cg.h +++ b/src/core/include/megbrain/graph/cg.h @@ -95,8 +95,6 @@ struct GraphCommonOptimizeOptions { //! fuse pattern like ReLU(conv_bias(x, w, b) + z) or conv_bias(x, w, b) //! + z -> conv_bias(x, w, b, z) bool fuse_conv_bias_with_z = false; - //! whether to enable fast-run profiled winograd opr replace - bool weight_winograd_transform = false; //! whether to enable weight preprocess, if enabled it may use more //! memory, default disable now, when weight preprocess is enabled, the //! input shape should no change @@ -133,7 +131,6 @@ struct GraphCommonOptimizeOptions { SET(fuse_conv_bias_nonlinearity); SET(fuse_conv_bias_with_z); SET(fuse_preprocess); - SET(weight_winograd_transform); SET(weight_preprocess); #undef SET #define SET(_trans, _trans_capital) \