cutlass icon indicating copy to clipboard operation
cutlass copied to clipboard

[QST]Can I create a null tensor?

Open ziyuhuang123 opened this issue 5 months ago • 5 comments

Hi! I am wondering can I create a null tensor?

I am creating a tensor within a {} but need to use it in another {}. The lifetime of a variable is within a {}. So I need to create the tensor before the first {}, like:

Tensor s;
{
auto s = ......
}

{
func(s, ......)
}

But it seems I can not create like Tensor s ???

ziyuhuang123 avatar Sep 12 '24 17:09 ziyuhuang123