Struct grpc_vision_svc::image_captioning::utils::DefaultDeviceUtils
source · pub struct DefaultDeviceUtils;
Expand description
A default implementation of the DeviceUtils
trait.
This implementation uses the candle_core
crate to check if CUDA
and Metal are available on the device (requires the cuda
or metal
features to be enabled).
Trait Implementations§
source§impl DeviceUtils for DefaultDeviceUtils
impl DeviceUtils for DefaultDeviceUtils
fn cuda_is_available(&self) -> bool
fn metal_is_available(&self) -> bool
Auto Trait Implementations§
impl Freeze for DefaultDeviceUtils
impl RefUnwindSafe for DefaultDeviceUtils
impl Send for DefaultDeviceUtils
impl Sync for DefaultDeviceUtils
impl Unpin for DefaultDeviceUtils
impl UnwindSafe for DefaultDeviceUtils
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request