| tiêu đề | pytorch pytorch (torch.jit.script) torch 2.6.0 Segmentation Fault |
|---|
| Mô tả | # 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 = []
``` |
|---|
| Nguồn | ⚠️ https://github.com/pytorch/pytorch/issues/149623 |
|---|
| Người dùng | Default436352 (UID 81891) |
|---|
| Đệ trình | 20/03/2025 15:40 (cách đây 1 Năm) |
|---|
| Kiểm duyệt | 30/03/2025 19:42 (10 days later) |
|---|
| Trạng thái | được chấp nhận |
|---|
| Mục VulDB | 302049 [PyTorch 2.6.0 torch.jit.script tràn bộ đệm] |
|---|
| điểm | 20 |
|---|