Zum Hauptinhalt springen
••
Sichere ProgrammierungCryptotremor: finding out when your encryption actually stops working(03.10.2026 um 08:10 Uhr)
•
Sichere ProgrammierungAI Viva Partner: A Private, Offline Exam Study Assistant for My Friend(03.10.2026 um 08:11 Uhr)
••
Windows Tipps & SecurityMintline: prove which Solana token came first(03.10.2026 um 08:15 Uhr)
•••
Sichere ProgrammierungI've never run an AI model on my own machine. This month I will.(03.10.2026 um 08:17 Uhr)
•
Sichere ProgrammierungI removed my Chinese web font. Every page lost 1 MB(03.10.2026 um 08:18 Uhr)
•••
Sichere ProgrammierungCryptotremor: finding out when your encryption actually stops working(03.10.2026 um 08:10 Uhr)
•
Sichere ProgrammierungAI Viva Partner: A Private, Offline Exam Study Assistant for My Friend(03.10.2026 um 08:11 Uhr)
••
Windows Tipps & SecurityMintline: prove which Solana token came first(03.10.2026 um 08:15 Uhr)
•••
Sichere ProgrammierungI've never run an AI model on my own machine. This month I will.(03.10.2026 um 08:17 Uhr)
•
Sichere ProgrammierungI removed my Chinese web font. Every page lost 1 MB(03.10.2026 um 08:18 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

trunk/7a192a61c9e27f379e1b5492be6f152b76be7609: Replace __args__ with typing.get_args() and TensorType.dims (#183006)

Addresses #169073. Two changes: TensorType (torch/fx/tensor_type.py) was using args and origin to mimic a typing generic, but it's actually a domain type…

Beitrag
0
Seite
0
↗ Quelle (github.com)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!

Addresses #169073. Two changes:




  1. TensorType (torch/fx/tensor_type.py) was using args and origin

    to mimic a typing generic, but it's actually a domain type representing

    tensor dimensions. Added a dims property and migrated all internal

    usages from .__args__ to .dims (the backing __args__ attribute

    is kept for backward compat). This removes the confusion about whether

    TensorType should be accessed via typing.get_args().




  2. Replaced all remaining .__args__ accesses on standard typing generics

    (Union, List, Tuple, etc.) with typing.get_args(), the recommended

    public API. Covers operator_schemas, graph codegen, dynamo variables,

    inductor fuzzer, datapipes typing, and several other modules.




Authored with Claude.


Pull Request resolved: #183006

Approved by: https://github.com/Skylion007

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten trunk/7a192a61c9e27f379e1b5492be6f152b76be7609: Replace __args__ with typing.get_args() and TensorType.dims (#183006)

Thematisch verwandte Begriffe: trunk7a192a61c9e27f379e1b5492be6f152b76be7609, Replace, args, with · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Nächster Beitrag