Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Micky774 committed Mar 11, 2024
1 parent 0b90f2b commit 75cabb5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions xla/python/xla_extension/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,16 @@ class DeviceTopology:
def buffer_to_dlpack_managed_tensor(
buffer: ArrayImpl, stream: int | None = None
) -> Any: ...
@overload
def dlpack_managed_tensor_to_buffer(
tensor: Any, device: Device, stream: int | None
) -> ArrayImpl: ...
@overload
def dlpack_managed_tensor_to_buffer( # Legacy overload
tensor: Any,
cpu_backend: Optional[Client] = ...,
gpu_backend: Optional[Client] = ...,
) -> ArrayImpl: ...

def cuda_array_interface_to_buffer(
cai: Dict[str, Union[
Expand All @@ -710,12 +717,6 @@ def cuda_array_interface_to_buffer(
gpu_backend: Optional[Client] = ...,
) -> ArrayImpl: ...

# Legacy overload
def dlpack_managed_tensor_to_buffer(
tensor: Any,
cpu_backend: Optional[Client] = ...,
gpu_backend: Optional[Client] = ...,
) -> ArrayImpl: ...

# === BEGIN py_traceback.cc

Expand Down

0 comments on commit 75cabb5

Please sign in to comment.