Struct pjrt_sys::protos::stream_executor::dnn::AlgorithmConfigProto
source · pub struct AlgorithmConfigProto {
pub optional_algorithm: Option<OptionalAlgorithm>,
pub optional_algorithm_no_scratch: Option<OptionalAlgorithmNoScratch>,
pub optional_scratch_size: Option<OptionalScratchSize>,
}Expand description
Proto definition of AlgorithmConfig in “dnn.h”. TODO(ruochengw): After cl/380702564 is submitted, add support for algorithm configs with cuDNN Frontend APIs.
Fields§
§optional_algorithm: Option<OptionalAlgorithm>Use oneof to emulate optional semantics in proto2 since older version of proto3 cannot distinguish “unset field” and “default field”.
optional_algorithm_no_scratch: Option<OptionalAlgorithmNoScratch>§optional_scratch_size: Option<OptionalScratchSize>Trait Implementations§
source§impl Clone for AlgorithmConfigProto
impl Clone for AlgorithmConfigProto
source§fn clone(&self) -> AlgorithmConfigProto
fn clone(&self) -> AlgorithmConfigProto
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AlgorithmConfigProto
impl Debug for AlgorithmConfigProto
source§impl Default for AlgorithmConfigProto
impl Default for AlgorithmConfigProto
source§impl Message for AlgorithmConfigProto
impl Message for AlgorithmConfigProto
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.source§impl PartialEq for AlgorithmConfigProto
impl PartialEq for AlgorithmConfigProto
impl StructuralPartialEq for AlgorithmConfigProto
Auto Trait Implementations§
impl Freeze for AlgorithmConfigProto
impl RefUnwindSafe for AlgorithmConfigProto
impl Send for AlgorithmConfigProto
impl Sync for AlgorithmConfigProto
impl Unpin for AlgorithmConfigProto
impl UnwindSafe for AlgorithmConfigProto
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)