-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
questionFurther information is requestedFurther information is requested
Description
-
From
dpctltopytorch:import dpctl.tensor as dpt import intel_extension_for_pytorch import torch array_dpctl_cpu = dpt.reshape(dpt.arange(1000, device="cpu", dtype=dpt.float32), (4, 250)) array_torch_cpu = torch.from_dlpack(array_dpctl_cpu)
fails with:
RuntimeError: Data pointer is not bound to the default context of the specific device. -
from
pytorchtodpctl:import dpctl.tensor as dpt import intel_extension_for_pytorch import torch array_torch_cpu = torch.arange(1000, dtype=torch.float32, device="cpu").reshape(4, 250) array_dpctl_cpu = dpt.from_dlpack(array_torch_cpu)
fails with
BufferError: The DLPack tensor resides on unsupported device.
Should those conversions be possible ?
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested