Skip to content

Commit 86977e0

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
fbcode//executorch/extension/llm/runner:runner_lib_aten
Reviewed By: dtolnay Differential Revision: D79042217
1 parent 6d4b68a commit 86977e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/llm/runner/text_llm_runner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ std::unordered_map<std::string, int64_t> get_llm_metadata(
331331
const auto& method_name = pair.first;
332332
auto& value = pair.second;
333333

334-
if (method_names.count(method_name)) {
334+
if (method_names.contains(method_name)) {
335335
auto get_result = module->get(method_name);
336336
value = get_result.get().toScalar().to<decltype(metadata)::mapped_type>();
337337
} else {
@@ -361,7 +361,7 @@ std::unordered_set<uint64_t> get_eos_ids(
361361
}
362362
const auto method_names = method_names_result.get();
363363

364-
if (method_names.count(llm::kEosIds)) {
364+
if (method_names.contains(llm::kEosIds)) {
365365
eos_ids.clear();
366366
auto execute_result = module->execute(llm::kEosIds);
367367
if (execute_result.error() != Error::Ok) {

0 commit comments

Comments
 (0)