Struct tensorflow::QInt16
[−]
[src]
pub struct QInt16(_);
Quantized type for i16.
Trait Implementations
impl Clone for QInt16[src]
fn clone(&self) -> QInt16[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for QInt16[src]
impl Default for QInt16[src]
impl Debug for QInt16[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for QInt16[src]
impl PartialEq for QInt16[src]
fn eq(&self, __arg_0: &QInt16) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &QInt16) -> bool[src]
This method tests for !=.
impl Ord for QInt16[src]
fn cmp(&self, __arg_0: &QInt16) -> Ordering[src]
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for QInt16[src]
fn partial_cmp(&self, __arg_0: &QInt16) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &QInt16) -> bool[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &QInt16) -> bool[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &QInt16) -> bool[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &QInt16) -> bool[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Display for QInt16[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl From<i16> for QInt16[src]
impl TensorType for QInt16[src]
type InnerType = TensorDataCRepr<QInt16>
fn data_type() -> DataType[src]
Returns the DataType that corresponds to this type.
fn zero() -> Self[src]
Returns the zero value.
fn one() -> Self[src]
Returns the one value.
fn is_repr_c() -> bool[src]
Return 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]
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]
Returns 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]
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