duoergun0729 / duoergun0729/adversarial_examples
TypeError: true_divide() received an invalid combination of arguments
- Dominant language
- Jupyter Notebook
- Stars
- 276
- Forks
- 111
- PR merge metrics
- No merged PRs in 30d
Description
运行9-advbox-mnist-fgsm代码报错查了一些博客说是python版本的问题具体解决方法还是不清楚
TypeError: true_divide() received an invalid combination of arguments - got (numpy.ndarray, int), but expected one of:
* (Tensor input, Tensor other, *, Tensor out)
* (Tensor input, Number other)
didn't match because some of the arguments have invalid types: (numpy.ndarray, int)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the 9-advbox-mnist-fgsm notebook and locating the operation that raises the reported true_divide TypeError. Check how the NumPy array and Tensor are passed into that operation, then verify the notebook completes without the error under a supported Python and library setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, numpy, python, pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100