Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update usage of numpy to reflect numpy 2.0 changes #6871

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

JamesHollyer
Copy link
Contributor

@JamesHollyer JamesHollyer commented Jun 20, 2024

Motivation for features / changes

Nightlies are failing due to new numpy release(one example: https://github.com/tensorflow/tensorboard/actions/runs/9546526095/job/26309613783)

See #6869 for context.

Technical description of changes

The new numpy replaced np.string_ with np.bytes_ and np.unicode_ with np.str_

Screenshots of UI changes (or N/A)

Detailed steps to verify changes work correctly (as executed by you)

I ran tests that were failing and they passed.

Alternate designs / implementations considered (or N/A)

Locking numpy version < 2 was considered. However, this will eventually get us very out of date and should be avoided.

@yatbear yatbear self-requested a review June 20, 2024 22:03
Copy link
Member

@yatbear yatbear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🦀

@JamesHollyer JamesHollyer merged commit b163c5d into tensorflow:master Jun 21, 2024
13 checks passed
@yatbear yatbear mentioned this pull request Jul 1, 2024
@shreyanmitra
Copy link

@JamesHollyer Hello! When can I expect this change to show up in the stable python package?

@bernardbeckerman
Copy link

Hi there, glad to see this fix went in! Are you all planning a release for this fix to take effect more widely? Thanks very much for your support!

groszewn pushed a commit to groszewn/tensorboard that referenced this pull request Aug 13, 2024
## Motivation for features / changes
Nightlies are failing due to new numpy release(one example:
https://github.com/tensorflow/tensorboard/actions/runs/9546526095/job/26309613783)

## Technical description of changes
The new numpy replaced np.string_ with np.bytes_ and np.unicode_ with
np.str_

## Screenshots of UI changes (or N/A)

## Detailed steps to verify changes work correctly (as executed by you)
I ran tests that were failing and they passed.

## Alternate designs / implementations considered (or N/A)
Locking numpy version < 2 was considered. However, this will eventually
get us very out of date and should be avoided.

---------

Co-authored-by: James Hollyer <jameshollyer@google.com>
groszewn pushed a commit that referenced this pull request Aug 13, 2024
## Motivation for features / changes
Nightlies are failing due to new numpy release(one example:
https://github.com/tensorflow/tensorboard/actions/runs/9546526095/job/26309613783)

## Technical description of changes
The new numpy replaced np.string_ with np.bytes_ and np.unicode_ with
np.str_

## Screenshots of UI changes (or N/A)

## Detailed steps to verify changes work correctly (as executed by you)
I ran tests that were failing and they passed.

## Alternate designs / implementations considered (or N/A)
Locking numpy version < 2 was considered. However, this will eventually
get us very out of date and should be avoided.

---------

Co-authored-by: James Hollyer <jameshollyer@google.com>
j3soon added a commit to j3soon/tbparse that referenced this pull request Aug 13, 2024
This is a temporary requirement and should be removed after the tensorboard 2.17.1 release.

References:
- tensorflow/tensorboard#6871
- tensorflow/tensorboard#6874
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants