Closed
Description
Unit test case
ERROR: test_copy_all_dtypes_and_devices_dpcpp (__main__.TestTorchDeviceTypeDPCPP)
PyTorch source code(csrc/generic/Storage.cpp)
void THPStorage_(postInit)(PyObject *module)
{
THPStorageClass = PyObject_GetAttrString(module,(char*)TH_CONCAT_STRING_2(Real,Storage));
if (!THPStorageClass) throw python_error();
at::Backend backend = at::Backend::CPU;
#ifdef THC_GENERIC_FILE
backend = at::Backend::CUDA;
#endif
#ifdef THQUANTIZED
backend = at::Backend::QuantizedCPU;
#endif
torch::registerStoragePyTypeObject((PyTypeObject*)THPStorageClass, backend, TH_CONCAT_2(at::k, Real));
}