Skip to content
Open
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
19 changes: 1 addition & 18 deletions backends/vulkan/runtime/graph/ops/impl/Q8taConv2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,24 +401,7 @@ void q8ta_conv2d_general(
}

void q8ta_conv2d(ComputeGraph& graph, const std::vector<ValueRef>& args) {
// Index into args to extract values needed for dispatch decision
const ValueRef packed_int8_input = args.at(0);
const ValueRef kernel_size = args.at(9);
const ValueRef groups = args.at(13);

const int32_t groups_val = graph.get_int(groups);
const int64_t IC = graph.size_at<int64_t>(-3, packed_int8_input);

const int64_t K_h = graph.get_int_list(kernel_size)->at(0);
const int64_t K_w = graph.get_int_list(kernel_size)->at(1);

// Use im2col path when: non-grouped, input channels multiple of 4, small
// kernel
if (groups_val == 1 && IC % 4 == 0 && K_h <= 3 && K_w <= 3) {
q8ta_conv2d_im2col(graph, args);
} else {
q8ta_conv2d_general(graph, args);
}
q8ta_conv2d_general(graph, args);
}

REGISTER_OPERATORS {
Expand Down
Loading