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

AssertionError when i try to move model to direct ml #638

Open
limestackscode opened this issue Aug 27, 2024 · 1 comment
Open

AssertionError when i try to move model to direct ml #638

limestackscode opened this issue Aug 27, 2024 · 1 comment

Comments

@limestackscode
Copy link

I cant move model to direct ml but it works with cpu
since this works fine with cpu i assume this is a direct ml issue but i could be wrong
maybe im just doing something wrong here and if thats the case any help would be appreciated

im using torch-directml 0.2.4.dev240815

code that doesnt work :(

import torch
import torch_directml
dml = torch_directml.device()


device = dml



model = torch.hub.load(repo_or_dir="miccunifi/ARNIQA", source="github", model="ARNIQA",
                       regressor_dataset="kadid10k")    # You can choose any of the available datasets
model.eval().to(device)

outputs:
File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\nn\modules\module.py", line 830, in _apply
assert isinstance(param, Parameter)
AssertionError

@Lookforworld
Copy link

I'm having the same issue, is there any new progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@Lookforworld @limestackscode and others