Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MAINT Update gcg_attack.py #606

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

Tiger-Du
Copy link
Contributor

@Tiger-Du Tiger-Du commented Dec 15, 2024

Description

I noticed that np.infty is used in gcg_attack.py.

However, np.infty was deprecated as an alias of np.inf in NumPy 2.0.0 (https://numpy.org/devdocs/release/2.0.0-notes.html).

Since PyRIT uses NumPy 1.26.4 at the moment, it still works!

However, 2.0.0 is the release right after 1.26.4, so it might be good to change ahead of time since np.inf works either way.

This might be of relevance to Issue #532 since Python 3.13 is supported only by NumPy 2.1.0+.

Tests and Documentation

@romanlutz
Copy link
Contributor

Nice find! We also need to reexamine our dependencies to upgrade... I'll create an issue for that.

@rdheekonda rdheekonda merged commit 82a5426 into Azure:main Dec 16, 2024
9 checks passed
romanlutz pushed a commit that referenced this pull request Dec 17, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants