RuntimeError: assertion `dtype == dst.dtype && dst.is_contiguous()'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 114
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
当输入宽高不一致时报错,
在训练过程中报错,报错时机随缘:
yolo_head.py", line 351, in get_assignments
bboxes_preds_per_image = bboxes_preds_per_image[fg_mask]
RuntimeError: assertion `dtype == dst.dtype && dst.is_contiguous()' failed at ../../../../../../dnn/src/common/elemwise/opr_impl.cpp:281: void megdnn::ElemwiseForward::check_layout_and_broadcast(const TensorLayoutPtrArray&, const megdnn::TensorLayout&)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at yolo_head.py line 351 in get_assignments and reproduce training with inputs whose width and height differ. Inspect the reported MegEngine assertion about dtype and contiguity, then verify training completes without this RuntimeError under the reported input condition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100