pub struct ConvolutionDescriptorProto {
pub paddings: Vec<i64>,
pub strides: Vec<i64>,
pub dilations: Vec<i64>,
pub compute_mode: i32,
pub group_count: i32,
pub convolution_mode: i32,
pub name: String,
}
Expand description
Convolution-specific parameters.
Fields§
§paddings: Vec<i64>
§strides: Vec<i64>
§dilations: Vec<i64>
§compute_mode: i32
The “accumulator” type. For example, use F32 as an accumulator for F16 convolutions. See cuDNN’s cudnnConvolutionMode_t.
group_count: i32
See cuDNN’s group count.
convolution_mode: i32
§name: String
Tensorflow node name, same as in NodeDef, for debugging purposes.
Implementations§
Source§impl ConvolutionDescriptorProto
impl ConvolutionDescriptorProto
Sourcepub fn compute_mode(&self) -> DataType
pub fn compute_mode(&self) -> DataType
Returns the enum value of compute_mode
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_compute_mode(&mut self, value: DataType)
pub fn set_compute_mode(&mut self, value: DataType)
Sets compute_mode
to the provided enum value.
Sourcepub fn convolution_mode(&self) -> ConvolutionMode
pub fn convolution_mode(&self) -> ConvolutionMode
Returns the enum value of convolution_mode
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_convolution_mode(&mut self, value: ConvolutionMode)
pub fn set_convolution_mode(&mut self, value: ConvolutionMode)
Sets convolution_mode
to the provided enum value.
Trait Implementations§
Source§impl Clone for ConvolutionDescriptorProto
impl Clone for ConvolutionDescriptorProto
Source§fn clone(&self) -> ConvolutionDescriptorProto
fn clone(&self) -> ConvolutionDescriptorProto
Returns a duplicate 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 ConvolutionDescriptorProto
impl Debug for ConvolutionDescriptorProto
Source§impl Default for ConvolutionDescriptorProto
impl Default for ConvolutionDescriptorProto
Source§impl Message for ConvolutionDescriptorProto
impl Message for ConvolutionDescriptorProto
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl StructuralPartialEq for ConvolutionDescriptorProto
Auto Trait Implementations§
impl Freeze for ConvolutionDescriptorProto
impl RefUnwindSafe for ConvolutionDescriptorProto
impl Send for ConvolutionDescriptorProto
impl Sync for ConvolutionDescriptorProto
impl Unpin for ConvolutionDescriptorProto
impl UnwindSafe for ConvolutionDescriptorProto
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