pub struct FusionTensor<R: FusionRuntime> {
pub id: TensorId,
pub shape: Vec<usize>,
pub client: Client<R>,
pub dtype: DType,
pub stream: StreamId,
/* private fields */
}
Expand description
Tensor primitive for the fusion backend for all kind.
Fields§
§id: TensorId
Tensor id.
shape: Vec<usize>
The shape of the tensor.
client: Client<R>
The fusion client.
dtype: DType
The datatype of the tensor.
stream: StreamId
The current stream id this tensor is on.
Implementations§
Source§impl<R: FusionRuntime> FusionTensor<R>
impl<R: FusionRuntime> FusionTensor<R>
Trait Implementations§
Source§impl<R: FusionRuntime> Clone for FusionTensor<R>
impl<R: FusionRuntime> Clone for FusionTensor<R>
Source§impl<R: FusionRuntime> Debug for FusionTensor<R>
impl<R: FusionRuntime> Debug for FusionTensor<R>
Source§impl<R: FusionRuntime> Drop for FusionTensor<R>
impl<R: FusionRuntime> Drop for FusionTensor<R>
Source§impl<R: FusionRuntime> QTensorPrimitive for FusionTensor<R>
impl<R: FusionRuntime> QTensorPrimitive for FusionTensor<R>
Source§fn scheme(&self) -> &QuantScheme
fn scheme(&self) -> &QuantScheme
Returns the quantization scheme for the given tensor.
Source§impl<R: FusionRuntime> TensorMetadata for FusionTensor<R>
impl<R: FusionRuntime> TensorMetadata for FusionTensor<R>
Auto Trait Implementations§
impl<R> Freeze for FusionTensor<R>
impl<R> RefUnwindSafe for FusionTensor<R>
impl<R> Send for FusionTensor<R>
impl<R> Sync for FusionTensor<R>
impl<R> Unpin for FusionTensor<R>
impl<R> UnwindSafe for FusionTensor<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