Skip to content

Add dim parameter to LabelTensor.stack method #770

Description

@GiovanniCanali

Is your feature request related to a problem? Please describe.
The current implementation of the stack method in the LabelTensor class does not allow users to specify the dimension along which tensors are stacked. Since the method internally relies on torch.stack, it would be beneficial to expose this parameter to provide greater flexibility and consistency with the underlying PyTorch API.

Note: An additional check may be necessary. To preserve label integrity, the newly introduced dimension should likely not be the last one.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions