Skip to content
Merged
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
6 changes: 3 additions & 3 deletions host/driver_offline/src/conv_fwd_driver_offline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void host_convolution_forward(const Tensor<TIn>& in,

if constexpr(is_same<TOut, ushort>::value)
{
out(n, k, ho, wo) = type_convert<ushort>(v);
out(n, k, ho, wo) = ck::type_convert<ushort>(static_cast<float>(v));
}
else
{
Expand Down Expand Up @@ -134,7 +134,7 @@ void host_convolution_forward(const Tensor<TIn>& in,
}
if constexpr(is_same<TOut, ushort>::value)
{
out(n, ho, wo, k) = ck::type_convert<ushort>(v);
out(n, ho, wo, k) = ck::type_convert<ushort>(static_cast<float>(v));
}
else
{
Expand Down Expand Up @@ -257,7 +257,7 @@ int main(int argc, char* argv[])
using in_data_t = float;
using acc_data_t = float;
using out_data_t = float;
#elif 0
#elif 1
using in_data_t = half_t;
using acc_data_t = float;
using out_data_t = half_t;
Expand Down
6 changes: 1 addition & 5 deletions host/driver_offline/src/gemm_driver_offline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,10 @@ int main(int argc, char* argv[])
using ab_data_t = float;
using acc_data_t = float;
using c_data_t = float;
#elif 0
#elif 1
using ab_data_t = half_t;
using acc_data_t = float;
using c_data_t = half_t;
#elif 1
using ab_data_t = ushort;
using acc_data_t = float;
using c_data_t = ushort;
#elif 1
using ab_data_t = int8_t;
using acc_data_t = int32_t;
Expand Down