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 2090b13 commit 73a8c2bCopy full SHA for 73a8c2b
tools/cmake/Codegen.cmake
@@ -23,8 +23,10 @@ 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} AND NOT ${GEN_OPS_FROM_MODEL})
27
- message(FATAL_ERROR " DTYPE_SELECTIVE_BUILD is only support with model API, please pass in a model")
+ if(GEN_DTYPE_SELECTIVE_BUILD)
+ 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()
30
endif()
31
32
set(_oplist_yaml
0 commit comments