pub struct UniformQuantizedConvolution { /* private fields */ }
Expand description

Builder for the UniformQuantizedConvolution operation.

Implementations§

source§

impl UniformQuantizedConvolution

source

pub fn new() -> Self

Creates a new UniformQuantizedConvolution.

source

pub fn Tin<ArgType: Into<DataType>>(self, value: ArgType) -> Self

Sets the Tin attribute.

source

pub fn Tout<ArgType: Into<DataType>>(self, value: ArgType) -> Self

Sets the Tout attribute.

source

pub fn window_strides<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self

Sets the window_strides attribute.

source

pub fn padding<ArgType: Into<String>>(self, value: ArgType) -> Self

Sets the padding attribute.

source

pub fn explicit_padding<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self

Sets the explicit_padding attribute.

source

pub fn lhs_dilation<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self

Sets the lhs_dilation attribute.

source

pub fn rhs_dilation<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self

Sets the rhs_dilation attribute.

source

pub fn batch_group_count<ArgType: Into<i64>>(self, value: ArgType) -> Self

Sets the batch_group_count attribute.

source

pub fn feature_group_count<ArgType: Into<i64>>(self, value: ArgType) -> Self

Sets the feature_group_count attribute.

source

pub fn dimension_numbers<ArgType: Into<String>>(self, value: ArgType) -> Self

Sets the dimension_numbers attribute.

source

pub fn lhs_quantization_axis<ArgType: Into<i64>>(self, value: ArgType) -> Self

Sets the lhs_quantization_axis attribute.

source

pub fn lhs_quantization_min_val<ArgType: Into<i64>>( self, value: ArgType ) -> Self

Sets the lhs_quantization_min_val attribute.

source

pub fn lhs_quantization_max_val<ArgType: Into<i64>>( self, value: ArgType ) -> Self

Sets the lhs_quantization_max_val attribute.

source

pub fn rhs_quantization_axis<ArgType: Into<i64>>(self, value: ArgType) -> Self

Sets the rhs_quantization_axis attribute.

source

pub fn rhs_quantization_min_val<ArgType: Into<i64>>( self, value: ArgType ) -> Self

Sets the rhs_quantization_min_val attribute.

source

pub fn rhs_quantization_max_val<ArgType: Into<i64>>( self, value: ArgType ) -> Self

Sets the rhs_quantization_max_val attribute.

source

pub fn output_quantization_axis<ArgType: Into<i64>>( self, value: ArgType ) -> Self

Sets the output_quantization_axis attribute.

source

pub fn output_quantization_min_val<ArgType: Into<i64>>( self, value: ArgType ) -> Self

Sets the output_quantization_min_val attribute.

source

pub fn output_quantization_max_val<ArgType: Into<i64>>( self, value: ArgType ) -> Self

Sets the output_quantization_max_val attribute.

source

pub fn add_control_input(self, op: Operation) -> Self

Adds a control input.

source

pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>, O5: Into<Output>, O6: Into<Output>, O7: Into<Output>>( &self, lhs: O0, rhs: O1, lhs_scales: O2, lhs_zero_points: O3, rhs_scales: O4, rhs_zero_points: O5, output_scales: O6, output_zero_points: O7, scope: &mut Scope ) -> Result<Operation>

Builds the UniformQuantizedConvolution operation.

source

pub fn build_instance( &self, lhs: Output, rhs: Output, lhs_scales: Output, lhs_zero_points: Output, rhs_scales: Output, rhs_zero_points: Output, output_scales: Output, output_zero_points: Output, scope: &mut Scope ) -> Result<UniformQuantizedConvolutionInst>

Builds a new instance of ‘UniformQuantizedConvolution’ Operation with it’s Outputs and Inputs exposed as methods.

Trait Implementations§

source§

impl Debug for UniformQuantizedConvolution

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for UniformQuantizedConvolution

source§

fn default() -> UniformQuantizedConvolution

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.