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