diff --git a/library/include/ck/library/utility/host_tensor.hpp b/library/include/ck/library/utility/host_tensor.hpp index 4cb200ccc0..1cab4cd39e 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 - Tensor CopyAsType() const + std::enable_if_t, Tensor> CopyAsType() const { Tensor ret(mDesc); for(size_t i = 0; i < mData.size(); i++) @@ -268,8 +268,8 @@ struct Tensor Tensor(Tensor&& other) = default; - template - Tensor(const Tensor& other) : Tensor(other.template CopyAsType()) + template >> + Tensor(const Tensor& other) : Tensor(other.template CopyAsType()) { }