tensorflow::ops

Struct QuantizedConv2DWithBiasSumAndRelu

Source
pub struct QuantizedConv2DWithBiasSumAndRelu { /* private fields */ }
Expand description

Builder for the QuantizedConv2DWithBiasSumAndRelu operation.

Implementations§

Source§

impl QuantizedConv2DWithBiasSumAndRelu

Source

pub fn new() -> Self

Creates a new QuantizedConv2DWithBiasSumAndRelu.

Source

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

Sets the Tinput attribute.

Source

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

Sets the Tfilter attribute.

Source

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

Sets the out_type attribute.

Source

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

Sets the strides attribute.

Source

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

Sets the padding attribute.

Source

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

Sets the dilations attribute.

Source

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

Sets the padding_list 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, input: O0, filter: O1, bias: O2, min_input: O3, max_input: O4, min_filter: O5, max_filter: O6, summand: O7, scope: &mut Scope, ) -> Result<Operation>

Builds the QuantizedConv2DWithBiasSumAndRelu operation.

Trait Implementations§

Source§

impl Debug for QuantizedConv2DWithBiasSumAndRelu

Source§

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

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

impl Default for QuantizedConv2DWithBiasSumAndRelu

Source§

fn default() -> QuantizedConv2DWithBiasSumAndRelu

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

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.