"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "33a5eaffeb3b3a02e491b24f481cc0c72ed11c66"
Commit fd444bef authored by Jing Zhang's avatar Jing Zhang
Browse files

adjust splitK check tol

parent bdc8ea2c
...@@ -10,7 +10,7 @@ struct ProblemSize final ...@@ -10,7 +10,7 @@ struct ProblemSize final
ck::index_t stride_B = K; ck::index_t stride_B = K;
ck::index_t stride_C = N; ck::index_t stride_C = N;
ck::index_t k_batch = 16; ck::index_t k_batch = 4;
}; };
struct ExecutionConfig final struct ExecutionConfig final
...@@ -118,8 +118,13 @@ bool run_splitK_gemm(const ProblemSize& problem_size, const ExecutionConfig& con ...@@ -118,8 +118,13 @@ bool run_splitK_gemm(const ProblemSize& problem_size, const ExecutionConfig& con
if(config.do_verification) if(config.do_verification)
{ {
using ReferenceGemmInstance = ck::tensor_operation::host:: using ReferenceGemmInstance = ck::tensor_operation::host::ReferenceGemm<ADataType,
ReferenceGemm<ADataType, BDataType, CDataType, AccDataType, AElementOp, BElementOp, CElementOp>; BDataType,
CDataType,
AccDataType,
AElementOp,
BElementOp,
CElementOp>;
auto ref_gemm = ReferenceGemmInstance{}; auto ref_gemm = ReferenceGemmInstance{};
auto ref_invoker = ref_gemm.MakeInvoker(); auto ref_invoker = ref_gemm.MakeInvoker();
...@@ -129,7 +134,14 @@ bool run_splitK_gemm(const ProblemSize& problem_size, const ExecutionConfig& con ...@@ -129,7 +134,14 @@ bool run_splitK_gemm(const ProblemSize& problem_size, const ExecutionConfig& con
ref_invoker.Run(ref_argument); ref_invoker.Run(ref_argument);
return ck::utils::check_err(c_m_n_device_result.mData, c_m_n_host_result.mData) ? 0 : 1; if(std::is_same<CDataType, ck::half_t>::value)
return ck::utils::check_err(c_m_n_device_result.mData,
c_m_n_host_result.mData,
"fp16 incorrect result",
1e-5,
config.init_method == 1 ? 16 : 0.1);
else
return ck::utils::check_err(c_m_n_device_result.mData, c_m_n_host_result.mData);
} }
return true; return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment