dmlc / dmlc/decord

Code corrupted silently when import decord before torch

Open
#293 9 comments 8 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

This issue occurs when I import decord before torch, and then place nn.Module on the GPU.
```
import decord
import torch

torch.nn.Linear(3, 3).cuda()
```
It corrupted silently using `python3 debug.py`, and reported `Segmentation fault (core dumped)` when running in terminal.
Instead, the following code runs well,
```
import torch
import decord

torch.nn.Linear(3, 3).cuda()
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.