PaddlePaddle / PaddlePaddle/PaConvert

Windows 上 DLL 冲突

Open
#745 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
122
Forks
98
PR merge metrics
No merged PRs in 30d

Description

tests/torchvision_tests/model_apibase.py 第16行先导入了 paddle,第17行才导入 torch,这会在 Windows 上触发两者 DLL 冲突,进而报 shm.dll 依赖错误。把第17行的 import torch 提到第16行的 import paddle 之前,改成:
依次为:import numpy as np、import torch、import paddle

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open tests/torchvision_tests/model_apibase.py and inspect the imports around lines 16-17. Reorder the imports so numpy comes first, followed by torch and paddle; done means the file has that order and the Windows DLL conflict fix is represented in the test setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python, pytorch
Domain
testing
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.