We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b47c488 commit c2b7ef1Copy full SHA for c2b7ef1
tools/cmake/Codegen.cmake
@@ -23,10 +23,8 @@ function(gen_selected_ops)
23
message(STATUS " OPS_FROM_MODEL: ${GEN_OPS_FROM_MODEL}")
24
message(STATUS " DTYPE_SELECTIVE_BUILD: ${GEN_DTYPE_SELECTIVE_BUILD}")
25
26
- if(GEN_DTYPE_SELECTIVE_BUILD)
27
- if (NOT GEN_OPS_FROM_MODEL)
28
- message(FATAL_ERROR " DTYPE_SELECTIVE_BUILD is only support with model API, please pass in a model")
29
- endif()
+ if(${GEN_DTYPE_SELECTIVE_BUILD} AND NOT ${GEN_OPS_FROM_MODEL})
+ message(FATAL_ERROR " DTYPE_SELECTIVE_BUILD is only support with model API, please pass in a model")
30
endif()
31
32
set(_oplist_yaml
0 commit comments