Skip to content

Commit 849311e

Browse files
committed
Able to build the yaml file, but include file is empty for some reason
1 parent 3e541eb commit 849311e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/selective_build/test_selective_build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ test_cmake_select_ops_in_dict() {
171171
rm -rf ${build_dir}
172172
retry cmake -DCMAKE_BUILD_TYPE=Release \
173173
-DMAX_KERNEL_NUM=22 \
174-
-DEXECUTORCH_SELECT_OPS_DICT="{'aten::add': [Scalar.Float.name]}" \
174+
-DEXECUTORCH_SELECT_OPS_FROM_DICT='{\"aten::add\":[\"v1/3;0,1|3;0,1|3;0,1|3;0,1\"],\"aten::mul\":[],\"aten::bmm\":[\"Float\"]}' \
175175
-DCMAKE_INSTALL_PREFIX=cmake-out \
176176
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" \
177177
-B${build_dir} \
@@ -235,8 +235,8 @@ then
235235
#test_cmake_select_all_ops
236236
#test_cmake_select_ops_in_list
237237
#test_cmake_select_ops_in_yaml
238-
test_cmake_select_ops_in_model
239-
#test_cmake_select_ops_in_dict
238+
#test_cmake_select_ops_in_model
239+
test_cmake_select_ops_in_dict
240240
elif [[ $1 == "buck2" ]];
241241
then
242242
test_buck2_select_all_ops

tools/cmake/Codegen.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function(gen_selected_ops)
5656
list(APPEND _gen_oplist_command --include_all_operators)
5757
endif()
5858
if(GEN_OPS_FROM_DICT)
59-
list(APPEND _gen_oplist_command --ops_dict="${GEN_OPS_FROM_DICT}")
59+
list(APPEND _gen_oplist_command --ops_dict="${GEN_OPS_FROM_DICT}")
6060
endif()
6161
if(GEN_OPS_FROM_MODEL)
6262
list(APPEND _gen_oplist_command --model_file_path="${GEN_OPS_FROM_MODEL}")

0 commit comments

Comments
 (0)