Modifying L0_backend_python/examples/test.sh to test the python backend when numpy>=2 is installed in the environment. This is achieved by:
Installing updated versions of numpy>=2.0, torch==2.5.0, and torchvision==0.20.0 at the start of the subtest
Running through the existing subtest in L0_backend_python/examples/test.sh
Uninstalling numpy>=2 and re-installing numpy<2 so future subtests will still use numpy 1.x
Reason for limited scope:
Support for numpy>=2 proved to be more complicated than intended because older version of packages like torch, torchvision, and tensorflow do not support for numpy 2.x.
What does the PR do?
Modifying
L0_backend_python/examples/test.sh
to test the python backend whennumpy>=2
is installed in the environment. This is achieved by:numpy>=2.0
,torch==2.5.0
, andtorchvision==0.20.0
at the start of the subtestL0_backend_python/examples/test.sh
numpy>=2
and re-installingnumpy<2
so future subtests will still usenumpy 1.x
Reason for limited scope: Support for
numpy>=2
proved to be more complicated than intended because older version of packages liketorch
,torchvision
, andtensorflow
do not support fornumpy 2.x
.Related PRs:
Python Backend PR: Link
Where should the reviewer start?