Skip to content

Commit 7d25fbc

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
fbcode//executorch/backends/vulkan:vulkan_graph_runtime [A]
Reviewed By: dtolnay Differential Revision: D79045895
1 parent 00e3f99 commit 7d25fbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backends/vulkan/runtime/graph/Logging.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ void ComputeGraph::print_readable() {
9797
// Node type
9898
std::cout << std::setw(10);
9999
{
100-
if (input_set.count(value_idx) > 0) {
100+
if (input_set.contains(value_idx)) {
101101
std::cout << "INPUT";
102-
} else if (output_set.count(value_idx) > 0) {
102+
} else if (output_set.contains(value_idx)) {
103103
std::cout << "OUTPUT";
104-
} else if (prepack_set.count(value_idx) > 0) {
104+
} else if (prepack_set.contains(value_idx)) {
105105
std::cout << "PREPACK";
106106
} else {
107107
std::cout << "";
@@ -119,7 +119,7 @@ void ComputeGraph::print_readable() {
119119
}
120120

121121
std::cout << std::setw(10);
122-
if (value_ref_to_shared_object_idx.count(value_idx) > 0) {
122+
if (value_ref_to_shared_object_idx.contains(value_idx)) {
123123
size_t shared_obj_idx = value_ref_to_shared_object_idx.at(value_idx);
124124
std::cout << shared_obj_idx;
125125
} else {

0 commit comments

Comments
 (0)