提出 #524197: pytorch pytorch (torch.jit.script) torch 2.6.0 Segmentation Fault情報

タイトルpytorch pytorch (torch.jit.script) torch 2.6.0 Segmentation Fault
説明# Bug When using `@torch.jit.script` for TorchScript compilation, defining a scripted class (e.g., Ignored) where the `__init__` method includes a dynamic Python structure like list causes a `Segmentation fault` at runtime. # To Reproduce Running the following code results in a Segmentation fault: ``` import torch import torch.nn as nn @torch.jit.script class Ignored(object): def __init__(self): self.count: int = 0 self.items: list = [] ```
ソース⚠️ https://github.com/pytorch/pytorch/issues/149623
ユーザー
 Default436352 (UID 81891)
送信2025年03月20日 15:40 (1 年 ago)
モデレーション2025年03月30日 19:42 (10 days later)
ステータス承諾済み
VulDBエントリ302049 [PyTorch 2.6.0 torch.jit.script メモリ破損]
ポイント20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!