DI-treetensor
DI-treetensor copied to clipboard
Failure when try to convert between numpy and torch on Windows Python3.10
See here: https://github.com/opendilab/DI-treetensor/runs/7820313811?check_suite_focus=true
The bug is like
@method_treelize(return_type=_get_tensor_class)
def tensor(self: numpy.ndarray, *args, **kwargs):
> tensor_: torch.Tensor = torch.from_numpy(self)
E RuntimeError: Numpy is not available
The only way I found to 'solve' this is to downgrade python to version3.9 to lower. So these tests will be skipped temporarily.