DI-treetensor icon indicating copy to clipboard operation
DI-treetensor copied to clipboard

Failure when try to convert between numpy and torch on Windows Python3.10

Open HansBug opened this issue 3 years ago • 0 comments

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.

HansBug avatar Aug 14 '22 02:08 HansBug