Skip to content

Commit

Permalink
Update numpy requirement from <1.24.0 to <1.25.0 in /requirements (#959)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
  • Loading branch information
4 people authored May 30, 2023
1 parent 5f5adaf commit eed8356
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy <1.24.0 # strict # todo: seeing some compatibility issues
numpy <1.25.0
pytorch-lightning >1.7.0, <1.9.0 # strict
torchmetrics <0.11.0 # strict
lightning-utilities >0.3.1 # this is needed for PL 1.7
Expand Down
7 changes: 7 additions & 0 deletions src/pl_bolts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

import os

import numpy

from pl_bolts.__about__ import * # noqa: F401, F403

# adding compatibility for numpy >= 1.24
for tp_name, tp_ins in [("object", object), ("bool", bool), ("int", int), ("float", float)]:
if not hasattr(numpy, tp_name):
setattr(numpy, tp_name, tp_ins)

_PACKAGE_ROOT = os.path.dirname(__file__)
_PROJECT_ROOT = os.path.dirname(_PACKAGE_ROOT)
_HTTPS_AWS_HUB = "https://pl-bolts-weights.s3.us-east-2.amazonaws.com"
Expand Down

0 comments on commit eed8356

Please sign in to comment.