From 51d0c6794c80e21a4ebc03dc2094e810b4daa7eb Mon Sep 17 00:00:00 2001 From: "Po-Yen, Chen" Date: Fri, 19 Aug 2022 05:31:04 -0400 Subject: [PATCH] Remove constraint of Tensor<>::CopyAsType() --- library/include/ck/library/utility/host_tensor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/include/ck/library/utility/host_tensor.hpp b/library/include/ck/library/utility/host_tensor.hpp index 1cab4cd39e..e97c9f3fc2 100644 --- a/library/include/ck/library/utility/host_tensor.hpp +++ b/library/include/ck/library/utility/host_tensor.hpp @@ -254,7 +254,7 @@ struct Tensor Tensor(const HostTensorDescriptor& desc) : mDesc(desc), mData(mDesc.GetElementSpaceSize()) {} template - std::enable_if_t, Tensor> CopyAsType() const + Tensor CopyAsType() const { Tensor ret(mDesc); for(size_t i = 0; i < mData.size(); i++)