Skip to content

fbcode//executorch/backends/vulkan:vulkan_graph_runtime #12880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions backends/vulkan/runtime/graph/Logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ void ComputeGraph::print_readable() {
// Node type
std::cout << std::setw(10);
{
if (input_set.count(value_idx) > 0) {
if (input_set.contains(value_idx)) {
std::cout << "INPUT";
} else if (output_set.count(value_idx) > 0) {
} else if (output_set.contains(value_idx)) {
std::cout << "OUTPUT";
} else if (prepack_set.count(value_idx) > 0) {
} else if (prepack_set.contains(value_idx)) {
std::cout << "PREPACK";
} else {
std::cout << "";
Expand All @@ -119,7 +119,7 @@ void ComputeGraph::print_readable() {
}

std::cout << std::setw(10);
if (value_ref_to_shared_object_idx.count(value_idx) > 0) {
if (value_ref_to_shared_object_idx.contains(value_idx)) {
size_t shared_obj_idx = value_ref_to_shared_object_idx.at(value_idx);
std::cout << shared_obj_idx;
} else {
Expand Down
2 changes: 1 addition & 1 deletion backends/vulkan/runtime/graph/ops/OperatorRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace vkcompute {

bool OperatorRegistry::has_op(const std::string& name) {
return table_.count(name) > 0;
return table_.contains(name);
}

OperatorRegistry::OpFunction& OperatorRegistry::get_op_fn(
Expand Down
Loading