Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityWord Processing Is Not Writing ⭐(19.09.2026 um 17:44 Uhr)
Sichere ProgrammierungFrom Prompt to Graph Engineering, Explained With One Bug(19.09.2026 um 17:27 Uhr)
Sichere ProgrammierungA CSS triangle vanished, because one selector matched by substring(19.09.2026 um 17:27 Uhr)
Sichere ProgrammierungSwitch Codex accounts seamlessly with AgentHop(19.09.2026 um 17:28 Uhr)
Sichere ProgrammierungYour Team Got Faster With AI. Why Is Your First Move a Layoff?(19.09.2026 um 17:30 Uhr)
Sichere ProgrammierungHow to Move an Unfinished Coding Project to Another AI Agent(19.09.2026 um 17:33 Uhr)
Sichere ProgrammierungMarketing for Solo Founders: What Fits in the Time You Actually Have(19.09.2026 um 17:33 Uhr)
Sichere ProgrammierungAgent Skills and MCP Configs Need a Security Gate(19.09.2026 um 17:52 Uhr)
Windows Tipps & SecurityWord Processing Is Not Writing ⭐(19.09.2026 um 17:44 Uhr)
Sichere ProgrammierungFrom Prompt to Graph Engineering, Explained With One Bug(19.09.2026 um 17:27 Uhr)
Sichere ProgrammierungA CSS triangle vanished, because one selector matched by substring(19.09.2026 um 17:27 Uhr)
Sichere ProgrammierungSwitch Codex accounts seamlessly with AgentHop(19.09.2026 um 17:28 Uhr)
Sichere ProgrammierungYour Team Got Faster With AI. Why Is Your First Move a Layoff?(19.09.2026 um 17:30 Uhr)
Sichere ProgrammierungHow to Move an Unfinished Coding Project to Another AI Agent(19.09.2026 um 17:33 Uhr)
Sichere ProgrammierungMarketing for Solo Founders: What Fits in the Time You Actually Have(19.09.2026 um 17:33 Uhr)
Sichere ProgrammierungAgent Skills and MCP Configs Need a Security Gate(19.09.2026 um 17:52 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

trunk/8414e35518f93e2b48ebc594de2faba51dbeca83: Preserve signed zero in FX complex codegen (#185550)

FX codegen used complex.repr when rendering complex constants into generated Python source. CPython can print zero-component values such as (-0-1e-28j), -1e-28j, or (1-0j), and parsing that source can flip the sign of a zero component. Dynamo exposes this when it traces a tensor constant containing -1e-28j through FX: the generated GraphModule reconstructs a value with the wrong signed zero, changing tensor repr and the sign of the zero imaginary result from cos().

Render complex constants with a zero real or imaginary component as complex(real, imag) through the existing recursive argument printer. Float repr preserves -0.0, so those generated constants round-trip signed zero components. Nonzero complex constants keep the existing repr() path to avoid changing the common codegen case.

Fixes #153852

Generated by my agent

Benchmark Results:

  • FX GraphModule construction with 1000 zero-component complex constants, 80 iterations x 7 repeats, median: main 3.55 ms/graph; this diff 6.77 ms/graph. This is the affected correctness path that now emits complex(real, imag) to preserve signed zero.

  • FX GraphModule construction with 1000 nonzero complex constants, same command shape, median: main 4.29 ms/graph; this diff 3.90 ms/graph. Nonzero constants remain on the existing repr() path; the difference is measurement noise.

Test Plan:

  • python test/dynamo/test_repros.py ReproTests.test_compile_complex_tensor_constant_signed_zero

  • python test/test_fx.py TestFX.test_complex_constant_codegen_preserves_signed_zero (direct run blocked locally before target test by unrelated torchvision::nms registration failure)

  • targeted TestFX.test_complex_constant_codegen_preserves_signed_zero via a torchvision import stub

  • lintrunner -a

  • git diff --check

Pull Request resolved: #185550
Approved by: https://github.com/desertfire

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten trunk/8414e35518f93e2b48ebc594de2faba51dbeca83: Preserve signed zero in FX complex codegen (#185550)

Thematisch verwandte Begriffe: trunk8414e35518f93e2b48ebc594de2faba51dbeca83, Preserve, signed, zero · 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-61591 | djust provides Phoenix LiveView-style reactive server-side rendering for…
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
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