Open jgtong opened 1 month ago
Hello, is there anyone can help me with this issue?
@jgtong It was likely caused by a missing op previously. Tried on xpu-ops commit (https://github.com/intel/torch-xpu-ops/commit/804a03b76e6b1270327f3f6ddbe58b6ffba5d30e), and the test passed successfully.
The output is: kl_div(input,target)=tensor(0.9970, device='xpu:0', grad_fn=<DivBackward0>)
@xytintel
Thanks for the response. Is this change been committed to pytorch-upstream or do I need to download a special pytorch-wheels package to see this change?
🐛 Describe the bug
Greetings:
I am trying to use the
torch.nn.KLDivLoss
function on Intel's Max 1550 GPU; however, the function keeps falling back to execute on the CPU.Below is a reproducer:
I also tried with different tensor sizes with no success. Is this function not supported on GPU?
Versions
I am hesitant to put the full output of
collect_env.py
because this system is internal.OS: Ubuntu 22.04.5 Pytorch-gpu-dev: 0.5.3 Driver: 950.13 GPU: Intel Max 1550