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

Fix different length for numpy>=1.24.x #8655

Merged
merged 5 commits into from
Jun 25, 2024

Conversation

DrownFish19
Copy link
Collaborator

@DrownFish19 DrownFish19 commented Jun 25, 2024

PR types

Bug fixes

PR changes

Others

Description

Fix different length for numpy>=1.24.x

numpy version >= 1.24.x, the following code is not work

import numpy as np
arr = np.asarray([[1], [1,2]])

numpy version =1.23.x gives the warning as follows:

<stdin>:1: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.

Copy link

paddle-bot bot commented Jun 25, 2024

Thanks for your contribution!

Copy link

codecov bot commented Jun 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.80%. Comparing base (65e721e) to head (07673ea).
Report is 4 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #8655   +/-   ##
========================================
  Coverage    55.80%   55.80%           
========================================
  Files          620      620           
  Lines        96642    96642           
========================================
  Hits         53928    53928           
  Misses       42714    42714           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ZHUI ZHUI merged commit 381949d into PaddlePaddle:develop Jun 25, 2024
9 of 11 checks passed
@DrownFish19 DrownFish19 deleted the dev_fix_numpy_version branch June 28, 2024 09:20
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.

None yet

2 participants