Skip to content

[tensor-shapes] Can we just use *Shape instead of *Elements[Shape]? #4968

Description

@stroxler

I'm pretty sure that *tuple[A, B] has no meaning today, nor does *T where T: tuple. And similarly for IntTuple.

If that's the case, and we're confident it will continue to be, then Elements might be unnecessary. We can probably just allow the tuple type itself to be splatted directly. That would make code that actually needs such splats quite a bit more compact

Inspired by @TimothyEDawson's observation in #4807

Activity

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

Metadata

Metadata

Assignees

Labels

tensor-shapesAnything related to tensor shape typing

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions