mindspore2022/mindspore/ccsrc/pybind_api/utils
dayschan 11ee3b1624 add context graph_kernel_flags
used the flag "opt_level" to control GraphKernel,
0 means disabled while non-zero value means enabled.
the default value is controlled by context "enable_graph_kernel",
but if it's also set in "graph_kernel_flags", then the flag will prevail.

supported the whitelist and blacklist operators for GraphKernelExpander.
"enable_expand_ops", "enable_expand_ops_only", "disable_expand_ops".
2021-03-24 11:08:26 +08:00
..
ms_context_py.cc add context graph_kernel_flags 2021-03-24 11:08:26 +08:00