NVIDIA / NVIDIA/cutlass

[QST]Can I create a null tensor?

Open
#1,812 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

? - Needs Triage inactive-30d inactive-90d question
Dominant language
C++
Stars
10.5k
Forks
2.1k
Avg merge
3d 11h
Merged PRs (30d)
7

Description

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 ???

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Tensor type declaration and its construction examples in the CUTLASS sources or documentation. Check how a Tensor is expected to be initialized before it is passed to func, and consider the issue resolved when the supported approach for declaring and reusing it across scopes is documented or demonstrated.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
hpc
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.