File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
backends/vulkan/runtime/graph Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change 1111namespace vkcompute {
1212
1313bool OperatorRegistry::has_op (const std::string& name) {
14- return table_.count (name) > 0 ;
14+ return table_.contains (name);
1515}
1616
1717OperatorRegistry::OpFunction& OperatorRegistry::get_op_fn (
You can’t perform that action at this time.
0 commit comments