pub struct CubeFusionHandle<R: Runtime> {
pub client: ComputeClient<R::Server, R::Channel>,
pub handle: Handle,
pub device: R::Device,
pub dtype: DType,
pub strides: Vec<usize>,
}
Expand description
Handle to be used when fusing operations.
Fields§
§client: ComputeClient<R::Server, R::Channel>
Compute client for jit.
handle: Handle
The buffer where the data are stored.
device: R::Device
The device of the current tensor.
dtype: DType
The element type of the tensor.
strides: Vec<usize>
The strides of the tensor.
Implementations§
Source§impl<R: Runtime> CubeFusionHandle<R>
impl<R: Runtime> CubeFusionHandle<R>
Sourcepub fn as_handle_ref<'a>(&'a self, shape: &'a [usize]) -> TensorHandleRef<'a, R>
pub fn as_handle_ref<'a>(&'a self, shape: &'a [usize]) -> TensorHandleRef<'a, R>
Return the reference to a tensor handle.
Sourcepub fn as_tensor_arg<'a>(
&'a self,
shape: &'a [usize],
vectorisation: u8,
) -> TensorArg<'a, R>
pub fn as_tensor_arg<'a>( &'a self, shape: &'a [usize], vectorisation: u8, ) -> TensorArg<'a, R>
Return the reference to a tensor argument.
Trait Implementations§
Source§impl<R: Runtime> Clone for CubeFusionHandle<R>
impl<R: Runtime> Clone for CubeFusionHandle<R>
Source§impl<R: Runtime> Debug for CubeFusionHandle<R>
impl<R: Runtime> Debug for CubeFusionHandle<R>
impl<R: Runtime> Send for CubeFusionHandle<R>
impl<R: Runtime> Sync for CubeFusionHandle<R>
Auto Trait Implementations§
impl<R> Freeze for CubeFusionHandle<R>
impl<R> !RefUnwindSafe for CubeFusionHandle<R>
impl<R> Unpin for CubeFusionHandle<R>
impl<R> !UnwindSafe for CubeFusionHandle<R>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more