Skip to content

Commit bcacb0f

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
fbcode//executorch/codegen/tools:selective_build
Reviewed By: dtolnay Differential Revision: D79042161
1 parent 6d4b68a commit bcacb0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codegen/tools/selective_build.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ get_kernel_tensor_metadatas_from_execution_plan(
108108
}
109109

110110
// create an empty entry if current kernel is not in the map.
111-
if (op_io_metadata.count(op_overload_name) == 0) {
111+
if (!op_io_metadata.contains(op_overload_name)) {
112112
op_io_metadata.insert(
113113
std::make_pair(op_overload_name, OpIOMetaData()));
114114
}
@@ -215,7 +215,7 @@ py::dict _get_io_metadata_for_program_operators(
215215

216216
for (const auto& op_io_metadata : plan_op_io_metadata) {
217217
std::string op_name = op_io_metadata.first;
218-
if (program_op_io_metadata.count(op_name) == 0) {
218+
if (!program_op_io_metadata.contains(op_name)) {
219219
program_op_io_metadata.insert(std::make_pair(op_name, OpIOMetaData()));
220220
}
221221
program_op_io_metadata[op_name].insert(

0 commit comments

Comments
 (0)