[][src]Struct tensorflow_proto::tensorflow::ConvolutionProto

pub struct ConvolutionProto {
    pub kind: i32,
    pub input: Option<TensorDescriptorProto>,
    pub filter: Option<TensorDescriptorProto>,
    pub output: Option<TensorDescriptorProto>,
    pub conv_desc: Option<ConvolutionDescriptorProto>,
    pub conv_scale: f64,
    pub side_value_scale: f64,
    pub activation: i32,
    pub input_address: i64,
    pub filter_address: i64,
    pub output_address: i64,
    pub bias_address: i64,
    pub side_input_address: i64,
}

A convolution. Currently it's only used for logging. In the future, we may want to use it in the API as well.

Fields

kind: i32input: Option<TensorDescriptorProto>filter: Option<TensorDescriptorProto>output: Option<TensorDescriptorProto>conv_desc: Option<ConvolutionDescriptorProto>conv_scale: f64

result = conv_scale * conv(...) + side_value_scale * side_value. side_value is an arbitrary buffer if activation is not none. Otherwise, it has to be the result buffer (using its old values).

side_value_scale: f64activation: i32input_address: i64filter_address: i64output_address: i64bias_address: i64side_input_address: i64

Implementations

impl ConvolutionProto[src]

pub fn kind(&self) -> ConvolutionKind[src]

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

pub fn set_kind(&mut self, value: ConvolutionKind)[src]

Sets kind to the provided enum value.

pub fn activation(&self) -> ActivationMode[src]

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

pub fn set_activation(&mut self, value: ActivationMode)[src]

Sets activation to the provided enum value.

Trait Implementations

impl Clone for ConvolutionProto[src]

impl Debug for ConvolutionProto[src]

impl Default for ConvolutionProto[src]

impl Message for ConvolutionProto[src]

impl PartialEq<ConvolutionProto> for ConvolutionProto[src]

impl StructuralPartialEq for ConvolutionProto[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.