diff --git a/lite/src/mge/network_impl.cpp b/lite/src/mge/network_impl.cpp index 10480c44c651b83e24aeefe543e356d0568d2ecd..a7719520679ca92c412c3af53aefc29fcf307bcc 100644 --- a/lite/src/mge/network_impl.cpp +++ b/lite/src/mge/network_impl.cpp @@ -79,11 +79,6 @@ void NetworkImplDft::application_config() { force_output_use_user_specified_memory, force_output_use_user_specified_memory); ConfigOption(no_profiling_on_shape_change, no_profiling_on_shape_change); - LITE_ASSERT( - m_user_config->options.jit_level == 0 || - (m_user_config->options.jit_level > 0 && - device_type == LiteDeviceType::LITE_CUDA), - "jit only support in cuda device."); ConfigOption(graph_opt.jit, jit_level); ConfigOption(comp_node_seq_record_level, comp_node_seq_record_level); ConfigOption(graph_opt_level, graph_opt_level); diff --git a/src/core/include/megbrain/graph/cg.h b/src/core/include/megbrain/graph/cg.h index 2d545bcb9361a3265433a2823b9fa2dd05b9b3e2..0ae7a2365bd286ff328984f268042c25824782e5 100644 --- a/src/core/include/megbrain/graph/cg.h +++ b/src/core/include/megbrain/graph/cg.h @@ -366,7 +366,6 @@ public: * construction * 2: level-2: level-1, plus global optimization before graph * compiling - * 3: also enable JIT * <0: corresponding level, with result check for debug */ int16_t graph_opt_level = 2;