Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosGoogle Cloud Tech: Vibe coding in the pit lane 🏁(23.09.2026 um 01:00 Uhr)
Sichere ProgrammierungBuild an Explainable Vendor-Risk Gate in Node.js(23.09.2026 um 00:27 Uhr)
Sichere ProgrammierungFrom p=none to Enforcement: A Working Sequence for DMARC Rollout(23.09.2026 um 00:40 Uhr)
Sichere ProgrammierungWhen OPA's Bundle Loader Runs Past a `.manifest` Typo(23.09.2026 um 00:53 Uhr)
Sichere ProgrammierungGovernance Attack Surface Review: Bybit(23.09.2026 um 01:00 Uhr)
Linux Tipps & HardeningOpenShot video editor is now available as a snap(23.09.2026 um 00:09 Uhr)
KI & AI VideosAI Revolution: AI Robots Are Beating Humans Now(23.09.2026 um 00:32 Uhr)
YouTube Security VideosGoogle Cloud Tech: Vibe coding in the pit lane 🏁(23.09.2026 um 01:00 Uhr)
Sichere ProgrammierungBuild an Explainable Vendor-Risk Gate in Node.js(23.09.2026 um 00:27 Uhr)
Sichere ProgrammierungFrom p=none to Enforcement: A Working Sequence for DMARC Rollout(23.09.2026 um 00:40 Uhr)
Sichere ProgrammierungWhen OPA's Bundle Loader Runs Past a `.manifest` Typo(23.09.2026 um 00:53 Uhr)
Sichere ProgrammierungGovernance Attack Surface Review: Bybit(23.09.2026 um 01:00 Uhr)
Linux Tipps & HardeningOpenShot video editor is now available as a snap(23.09.2026 um 00:09 Uhr)
KI & AI VideosAI Revolution: AI Robots Are Beating Humans Now(23.09.2026 um 00:32 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

viable/strict/1781110191: Optimize mutable custom op version bump dispatch (#186175)

Mutable torch.library custom ops install an ADInplaceOrView shim to bump the version counter for mutated inputs. The shim already precomputed which schema arguments were mutable, but it still called utils.fill_defaults on every invocation.…

0
↗ Quelle (github.com)
Reagiere als Erste:r — dein Feedback zählt!

Mutable torch.library custom ops install an ADInplaceOrView shim to bump

the version counter for mutated inputs. The shim already precomputed which

schema arguments were mutable, but it still called utils.fill_defaults on

every invocation. That walked every schema argument before bumping only the

mutated values, so mutable custom op overhead grew with total argument count.


Use the dispatcher-provided args and kwargs directly in the hot path, and skip

omitted mutated arguments instead of materializing or incrementing their default

values. Default values for mutated arguments are expected to be non-Tensors or

fresh values, so there is no useful version counter to bump when the caller

omitted them.


This substantially reduces the overhead reported in #139494, but does not claim

to fully close the remaining gap between mutable and non-mutating custom ops.


The alternative was to optimize utils.fill_defaults itself, but that helper is

general schema normalization and the mutable version-bump path only needs the

small subset of mutated arguments that were actually provided.


Generated by my agent


Benchmark Results:

Before, issue benchmark on CUDA H100, 1000 calls per do_bench function:



  • mutate2 = 18.27797737121582

  • no_mutate2 = 13.457284654889788

  • mutate = 66.9056625366211

  • no_mutate = 17.066380310058594


After:



  • mutate2 = 16.13766403198242

  • no_mutate2 = 13.513686997549874

  • mutate = 21.02779197692871

  • no_mutate = 17.362232971191407


Test Plan:



  • python test/test_custom_ops.py TestCustomOpAPI.test_mutated_version_bump_does_not_fill_all_defaults TestCustomOpAPI.test_mutated_optional_arg_default_none TestCustomOpAPI.test_mutated TestCustomOpAPI.test_custom_op_out_tag

  • lintrunner -a

    Pull Request resolved: #186175

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

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten viable/strict/1781110191: Optimize mutable custom op version bump dispatch (#186175)

Thematisch verwandte Begriffe: viablestrict1781110191, Optimize, mutable, custom · 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 ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-58268 | SIPGO is a library for writing SIP services in the GO language. Prior to…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick