[][src]Struct tensorflow_proto::stream_executor::dnn::ConvolutionDescriptorProto

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,
}

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: i32name: String

Tensorflow node name, same as in NodeDef, for debugging purposes.

Implementations

impl ConvolutionDescriptorProto[src]

pub fn compute_mode(&self) -> DataType[src]

Returns the enum value of compute_mode, or the default if the field is set to an invalid enum value.

pub fn set_compute_mode(&mut self, value: DataType)[src]

Sets compute_mode to the provided enum value.

pub fn convolution_mode(&self) -> ConvolutionMode[src]

Returns the enum value of convolution_mode, or the default if the field is set to an invalid enum value.

pub fn set_convolution_mode(&mut self, value: ConvolutionMode)[src]

Sets convolution_mode to the provided enum value.

Trait Implementations

impl Clone for ConvolutionDescriptorProto[src]

impl Debug for ConvolutionDescriptorProto[src]

impl Default for ConvolutionDescriptorProto[src]

impl Message for ConvolutionDescriptorProto[src]

impl PartialEq<ConvolutionDescriptorProto> for ConvolutionDescriptorProto[src]

impl StructuralPartialEq for ConvolutionDescriptorProto[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.