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

AttributeError: module 'cupy' has no attribute 'array_equal' #6527

Closed
pseudotensor opened this issue Dec 18, 2020 · 3 comments · Fixed by #6528
Closed

AttributeError: module 'cupy' has no attribute 'array_equal' #6527

pseudotensor opened this issue Dec 18, 2020 · 3 comments · Fixed by #6528

Comments

@pseudotensor
Copy link
Contributor

pseudotensor commented Dec 18, 2020

2020-12-17 16:40:24,010 C: 16% D:51.4GB  M:47.6GB  NODE:LOCAL1      25343  INFO   |     return f(**kwargs)
2020-12-17 16:40:24,011 C: 16% D:51.4GB  M:47.6GB  NODE:LOCAL1      25343  INFO   |   File "/home/jon/minicondadai/lib/python3.6/site-packages/xgboost/sklearn.py", line 845, in fit
2020-12-17 16:40:24,011 C: 16% D:51.4GB  M:47.6GB  NODE:LOCAL1      25343  INFO   |     if not cp.array_equal(self.classes_, cp.arange(self.n_classes_)):
2020-12-17 16:40:24,011 C: 16% D:51.4GB  M:47.6GB  NODE:LOCAL1      25343  INFO   | AttributeError: module 'cupy' has no attribute 'array_equal'

I guess 1.3.0 updated use of cupy API, but I don't see that xgboost has a cupy version dependency.

But cupy==7.8.0 does not work with this change.

xgboost only says need cupy-cuda101 for win64_test.yml and version 7.8.0 is fine version.

Did I miss some dependency somewhere else?

@pseudotensor
Copy link
Contributor Author

@hcho3 from your PR commit c8ec621 related to label encoding.

@hcho3
Copy link
Collaborator

hcho3 commented Dec 18, 2020

@pseudotensor My bad, cupy.array_equal was added in cuPy 8.0.0. I will submit a pull request to remove it.

@hcho3
Copy link
Collaborator

hcho3 commented Dec 18, 2020

We will release a patch release with #6528. Thanks!

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 a pull request may close this issue.

2 participants