Skip to content

Commit

Permalink
Fix tensor casting happening in all cases (#3443)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHarrisonAMD authored Dec 18, 2024
1 parent eaf49ab commit 4dcc8b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/conv/invokers/impl_gemm_dynamic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ InvokerFactory MakeImplGemmDynamicForwardXdlopsNHWCInvokerFactory(
if(problem.GetOut().GetType() == miopenHalf)
return use_fp32_global_split_on_fp16;
if(problem.GetOut().GetType() == miopenBFloat16)
return need_set_zero;
return config.gemm_k_global_split > 0;
return false;
}();
const auto is_nchw = problem.IsLayoutDefault();
Expand Down Expand Up @@ -849,7 +849,10 @@ InvokerFactory MakeImplGemmDynamicBackwardDataXdlopsNHWCInvokerFactory(
if(problem.GetOut().GetType() == miopenHalf)
return use_fp32_global_split_on_fp16;
if(problem.GetOut().GetType() == miopenBFloat16)
return need_set_zero;
{
return (y < stride_h || x < stride_w || dilation_h != 1 || dilation_w != 1 ||
config.gemm_k_global_split > 0);
}
return false;
}();
const auto is_nchw = problem.IsLayoutDefault();
Expand Down

0 comments on commit 4dcc8b3

Please sign in to comment.