From cbbe2485b281434646edc22c19cd12cf5d4770b8 Mon Sep 17 00:00:00 2001 From: "Po-Yen, Chen" Date: Fri, 19 Aug 2022 00:30:53 -0400 Subject: [PATCH] Allow conversion between Tensor<> specializations --- library/include/ck/library/utility/host_tensor.hpp | 3 +++ 1 file changed, 3 insertions(+) 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;