pub struct CaptureChannel;Expand description
Router channel selecting the non-executing capture client.
Capture clients are scope-specific: CaptureDevice::capture_scope creates the client and
installs it with register_scoped_client before any tensor operations run. An unscoped client
would have no lifecycle owner or completed graph boundary, so it is intentionally unsupported.
Trait Implementations§
Source§impl Clone for CaptureChannel
impl Clone for CaptureChannel
Source§impl RouterChannel for CaptureChannel
impl RouterChannel for CaptureChannel
Source§type Device = CaptureDevice
type Device = CaptureDevice
Device type.
Source§type Bridge = CaptureBridge
type Bridge = CaptureBridge
A bridge that can transfer tensors between multiple backends.
Source§type Client = CaptureClient
type Client = CaptureClient
Client type.
Source§fn init_client(_device: &Self::Device) -> Self::Client
fn init_client(_device: &Self::Device) -> Self::Client
Initialize a new unscoped client for the given device. Read more
Source§fn get_tensor_handle(tensor: &TensorIr, client: &Self::Client) -> TensorData
fn get_tensor_handle(tensor: &TensorIr, client: &Self::Client) -> TensorData
Get the tensor handle corresponding to the tensor representation.
Source§fn register_tensor(
client: &Self::Client,
handle: TensorData,
_shape: Shape,
_dtype: DType,
) -> RouterTensor<Self::Client>
fn register_tensor( client: &Self::Client, handle: TensorData, _shape: Shape, _dtype: DType, ) -> RouterTensor<Self::Client>
Create a tensor with the given handle and shape.
Source§fn change_client_backend(
tensor: RouterTensor<Self::Client>,
device: &Self::Device,
) -> RouterTensor<Self::Client>
fn change_client_backend( tensor: RouterTensor<Self::Client>, device: &Self::Device, ) -> RouterTensor<Self::Client>
Change the tensor to a different client backend.
Auto Trait Implementations§
impl Freeze for CaptureChannel
impl RefUnwindSafe for CaptureChannel
impl Send for CaptureChannel
impl Sync for CaptureChannel
impl Unpin for CaptureChannel
impl UnsafeUnpin for CaptureChannel
impl UnwindSafe for CaptureChannel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more