intel / intel/torch-xpu-ops

[upstream ut] test_dlpack.py::TestTorchDlPackXPU::test_no_copy_xpu - RuntimeError: Can't get ATen device for XPU without XPU data.

Open
#3,077 2 comments 0 reactions 1 assignee Claimed by @AKloniecki View on GitHub
ut_upstream
Dominant language
Python
Stars
113
Forks
128
Avg merge
5d 9h
Merged PRs (30d)
112

Description

### 🐛 Describe the bug

The test_dlpack.py::TestTorchDlPackXPU::test_no_copy_xpu failed with RuntimeError: Can't get ATen device for XPU without XPU data.

### Error message
`
=================================== FAILURES ===================================
FAILED [0.0086s] test_dlpack.py::TestTorchDlPackXPU::test_no_copy_xpu - RuntimeError: Can't get ATen device for XPU without XPU data.
Exception raised from dlDeviceToTorchDevice at /var/lib/jenkins/workspace/aten/src/ATen/DLConvertor.cpp:177 (most recent call first):
C++ CapturedTraceback:
#4 std::_Function_handler, std::allocator > > const> (), c10::SetStackTraceFetcher(std::function, std::allocator > ()>)::{lambda()#1}>::_M_invoke(std::_Any_data const&) from Logging.cpp:0
#5 c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string, std::allocator >) from ??:0
#6 c10::detail::torchCheckFail(char const*, char const*, unsigned int, char const*) from ??:0
#7 at::dlDeviceToTorchDevice(DLDeviceType, signed char, void*) from ??:0
#8 at::maybeCopyTensor(at::Tensor const&, std::optional, std::optional) from ??:0
#9 _object* (anonymous namespace)::THPModule_toDLPackImpl(_object*, _object*, _object*) [clone .isra.0] from Module.cpp:0
...

### ToDo:
https://github.com/pytorch/pytorch/pull/173760

### Versions

2.12 main branch

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.