A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.1 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "G:\race\study\pytorch-unflow-master\run.py", line 9, in
import torch
File "E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch__init.py", line 2120, in
from torch._higher_order_ops import cond
File "E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch_higher_order_ops\init__.py", line 1, in
from .cond import cond
File "E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch_higher_order_ops\cond.py", line 5, in
import torch._subclasses.functional_tensor
File "E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch_subclasses\functional_tensor.py", line 42, in
class FunctionalTensor(torch.Tensor):
File "E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch_subclasses\functional_tensor.py", line 258, in FunctionalTensor
cpu = _conversion_method_template(device=torch.device("cpu"))
E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch_subclasses\functional_tensor.py:258: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_numpy.cpp:84.)
cpu = _conversion_method_template(device=torch.device("cpu"))
Traceback (most recent call last):
File "G:\race\study\pytorch-unflow-master\run.py", line 361, in
numpy.array(tenOutput.numpy().transpose(1, 2, 0), numpy.float32).tofile(objOutput)
^^^^^^^^^^^^^^^^^
RuntimeError: Numpy is not available
A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.1 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "G:\race\study\pytorch-unflow-master\run.py", line 9, in
import torch
File "E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch__init.py", line 2120, in
from torch._higher_order_ops import cond
File "E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch_higher_order_ops\ init__.py", line 1, in
from .cond import cond
File "E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch_higher_order_ops\cond.py", line 5, in
import torch._subclasses.functional_tensor
File "E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch_subclasses\functional_tensor.py", line 42, in
class FunctionalTensor(torch.Tensor):
File "E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch_subclasses\functional_tensor.py", line 258, in FunctionalTensor
cpu = _conversion_method_template(device=torch.device("cpu"))
E:\miniconda\envs\unflowpytorch\Lib\site-packages\torch_subclasses\functional_tensor.py:258: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_numpy.cpp:84.)
cpu = _conversion_method_template(device=torch.device("cpu"))
Traceback (most recent call last):
File "G:\race\study\pytorch-unflow-master\run.py", line 361, in
numpy.array(tenOutput.numpy().transpose(1, 2, 0), numpy.float32).tofile(objOutput)
^^^^^^^^^^^^^^^^^
RuntimeError: Numpy is not available
can you give me some advices ,thank you sou much!