Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HansBug opened this issue Aug 14, 2022 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@HansBug
Copy link
Member

HansBug commented Aug 14, 2022

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 HansBug added the bug Something isn't working label Aug 14, 2022
@HansBug HansBug self-assigned this Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant