Struct tensorflow::ops::QuantizeV2
source · pub struct QuantizeV2 { /* private fields */ }
Expand description
Builder for the QuantizeV2
operation.
Implementations§
source§impl QuantizeV2
impl QuantizeV2
sourcepub fn round_mode<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn round_mode<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the round_mode
attribute.
sourcepub fn narrow_range<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn narrow_range<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the narrow_range
attribute.
sourcepub fn ensure_minimum_range<ArgType: Into<f32>>(self, value: ArgType) -> Self
pub fn ensure_minimum_range<ArgType: Into<f32>>(self, value: ArgType) -> Self
Sets the ensure_minimum_range
attribute.
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>>(
&self,
input: O0,
min_range: O1,
max_range: O2,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>>( &self, input: O0, min_range: O1, max_range: O2, scope: &mut Scope ) -> Result<Operation>
Builds the QuantizeV2
operation.
sourcepub fn build_instance(
&self,
input: Output,
min_range: Output,
max_range: Output,
scope: &mut Scope
) -> Result<QuantizeV2Inst>
pub fn build_instance( &self, input: Output, min_range: Output, max_range: Output, scope: &mut Scope ) -> Result<QuantizeV2Inst>
Builds a new instance of ‘QuantizeV2’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for QuantizeV2
impl Debug for QuantizeV2
source§impl Default for QuantizeV2
impl Default for QuantizeV2
source§fn default() -> QuantizeV2
fn default() -> QuantizeV2
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for QuantizeV2
impl Send for QuantizeV2
impl Sync for QuantizeV2
impl Unpin for QuantizeV2
impl UnwindSafe for QuantizeV2
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