diff --git a/library/include/ck/library/utility/host_tensor.hpp b/library/include/ck/library/utility/host_tensor.hpp index d6c033b2f4..373f2fc4bd 100644 --- a/library/include/ck/library/utility/host_tensor.hpp +++ b/library/include/ck/library/utility/host_tensor.hpp @@ -266,6 +266,9 @@ struct Tensor Tensor(const Tensor& other) : mDesc(other.mDesc), mData(other.mData) {} + template >> + Tensor(const Tensor& other) : mDesc(other.mDesc), mData(std::begin(other.mData), std::end(other.mData)) {} + Tensor& operator=(const Tensor& other) { mDesc = other.mDesc;