You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ???
The text was updated successfully, but these errors were encountered:
tensors are non-owning views (unless the layout is fully static). I do not really know what it is that you are trying to achieve here. if you want to pass around the data buffer, just pass around the underlying buffer itself rather than the whole tensor?
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:
But it seems I can not create like
Tensor s
???The text was updated successfully, but these errors were encountered: