RuntimeError: Input type (torch.FloatTensor) and weight type (XPUFloatType) should be the same or input should be a MKLDNN tensor and weight is a dense tensor #7089
Labels
User Support
A user needs help with something, probably not a bug.
Your question
Error happens when I try to use Depth_anything_v2 preprocessor on GPU Intel Arc A770.
Open_pose and Canny work fine.
ChatGPT advice this, but I don't understand how to implement it:
import torch
= Set device to XPU (Intel Arc A770)
device = torch.device("xpu")
= Move model to XPU (after loading the model)
model = model.to(device)
= Move input tensor to XPU
input_tensor = input_tensor.to(device)
= Perform the inference
output = model(input_tensor)
Logs
Other
No response
The text was updated successfully, but these errors were encountered: