Skip to content

Commit

Permalink
[GPU][MTL] choose better conv kernel for filter size 32x32 in iGPU case
Browse files Browse the repository at this point in the history
  • Loading branch information
riverlijunjie committed Jun 15, 2024
1 parent 8be4a62 commit 6414481
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ bool ConvolutionKernel_bfyx_os_iyx_osv16::Validate(const Params& p) const {
const size_t acceptable_filter_size = 1024; // This acceptable size was decided by heuristics
const auto& params = static_cast<const convolution_params&>(p);
auto filter_size = params.filterSize.x * params.filterSize.y;
if (filter_size > acceptable_filter_size) {
if (filter_size >= acceptable_filter_size) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ bool ConvolutionKernel_bfyx_os_iyx_osv32::Validate(const Params& p) const {
const size_t acceptable_filter_size = 1024; // This acceptable size was decided by heuristics
const auto& params = static_cast<const convolution_params&>(p);
auto filter_size = params.filterSize.x * params.filterSize.y;
if (filter_size > acceptable_filter_size) {
if (filter_size >= acceptable_filter_size) {
return false;
}

Expand Down

0 comments on commit 6414481

Please sign in to comment.