| 제목 | 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. PM 03:40 (1 년도 ago) |
|---|
| 모더레이션 | 2025. 03. 30. PM 07:42 (10 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 302049 [PyTorch 2.6.0 torch.jit.script 메모리 손상] |
|---|
| 포인트들 | 20 |
|---|