Struct tensorflow::QUInt8 [−][src]
pub struct QUInt8(_);
Quantized type for u8.
Trait Implementations
impl Clone for QUInt8[src] 
impl Clone for QUInt8fn clone(&self) -> QUInt8[src] 
fn clone(&self) -> QUInt8Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for QUInt8[src] 
impl Copy for QUInt8impl Default for QUInt8[src] 
impl Default for QUInt8impl Debug for QUInt8[src] 
impl Debug for QUInt8fn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for QUInt8[src] 
impl Eq for QUInt8impl PartialEq for QUInt8[src] 
impl PartialEq for QUInt8fn eq(&self, other: &QUInt8) -> bool[src] 
fn eq(&self, other: &QUInt8) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &QUInt8) -> bool[src] 
fn ne(&self, other: &QUInt8) -> boolThis method tests for !=.
impl Ord for QUInt8[src] 
impl Ord for QUInt8fn cmp(&self, other: &QUInt8) -> Ordering[src] 
fn cmp(&self, other: &QUInt8) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src] 
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src] 
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for QUInt8[src] 
impl PartialOrd for QUInt8fn partial_cmp(&self, other: &QUInt8) -> Option<Ordering>[src] 
fn partial_cmp(&self, other: &QUInt8) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &QUInt8) -> bool[src] 
fn lt(&self, other: &QUInt8) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &QUInt8) -> bool[src] 
fn le(&self, other: &QUInt8) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &QUInt8) -> bool[src] 
fn gt(&self, other: &QUInt8) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &QUInt8) -> bool[src] 
fn ge(&self, other: &QUInt8) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Display for QUInt8[src] 
impl Display for QUInt8fn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<u8> for QUInt8[src] 
impl From<u8> for QUInt8impl TensorType for QUInt8[src] 
impl TensorType for QUInt8type InnerType = TensorDataCRepr<QUInt8>
fn data_type() -> DataType[src] 
fn data_type() -> DataTypeReturns the DataType that corresponds to this type.
fn zero() -> Self[src] 
fn zero() -> SelfReturns the zero value.
fn one() -> Self[src] 
fn one() -> SelfReturns the one value.
fn is_repr_c() -> bool[src] 
fn is_repr_c() -> boolReturn true if the data has the same representation in C and Rust and can be written/read directly. Read more
fn unpack(_data: &[u8], _count: usize) -> Result<Vec<Self>>[src] 
fn unpack(_data: &[u8], _count: usize) -> Result<Vec<Self>>Unpacks data from C. Returns an error if is_repr_c() is true for this type or some other error occurred. Read more
fn packed_size(_data: &[Self]) -> usize[src] 
fn packed_size(_data: &[Self]) -> usizeReturns the number of bytes in the packed representation.  If is_repr_c() returns true, this will return 0. Read more
fn pack(_data: &[Self], _buffer: &mut [u8]) -> Result<()>[src] 
fn pack(_data: &[Self], _buffer: &mut [u8]) -> Result<()>Packs data for sending to C.  Returns an error if is_repr_c() returns true for this type or some other error occurred.  The size of the buffer must be at least as large as the value returned by packed_size(data). Read more