Struct burn_jit::PrecisionBridge
source · pub struct PrecisionBridge<R> { /* private fields */ }Expand description
Handle precision conversion for the jit backend.
Trait Implementations§
source§impl<ROrigin, RTarget> BackendBridge<JitBackend<ROrigin>> for PrecisionBridge<RTarget>
impl<ROrigin, RTarget> BackendBridge<JitBackend<ROrigin>> for PrecisionBridge<RTarget>
§type Target = JitBackend<RTarget>
type Target = JitBackend<RTarget>
The target backend
source§fn into_target<const D: usize>(
tensor: FloatTensor<JitBackend<ROrigin>, D>,
device: Option<Device<Self::Target>>
) -> FloatTensor<Self::Target, D>
fn into_target<const D: usize>( tensor: FloatTensor<JitBackend<ROrigin>, D>, device: Option<Device<Self::Target>> ) -> FloatTensor<Self::Target, D>
Transfer the tensor to the target backend.
source§fn from_target<const D: usize>(
tensor: FloatTensor<Self::Target, D>,
device: Option<Device<JitBackend<ROrigin>>>
) -> FloatTensor<JitBackend<ROrigin>, D>
fn from_target<const D: usize>( tensor: FloatTensor<Self::Target, D>, device: Option<Device<JitBackend<ROrigin>>> ) -> FloatTensor<JitBackend<ROrigin>, D>
Transfer the tensor from the target backend.
Auto Trait Implementations§
impl<R> Freeze for PrecisionBridge<R>
impl<R> RefUnwindSafe for PrecisionBridge<R>where
R: RefUnwindSafe,
impl<R> Send for PrecisionBridge<R>where
R: Send,
impl<R> Sync for PrecisionBridge<R>where
R: Sync,
impl<R> Unpin for PrecisionBridge<R>where
R: Unpin,
impl<R> UnwindSafe for PrecisionBridge<R>where
R: UnwindSafe,
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