duoergun0729 / duoergun0729/adversarial_examples

TypeError: true_divide() received an invalid combination of arguments

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.