Struct tensorflow::QInt32
[−]
[src]
pub struct QInt32(_);
Quantized type for i32.
Trait Implementations
impl Clone for QInt32
[src]
fn clone(&self) -> QInt32
[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 QInt32
[src]
impl Default for QInt32
[src]
impl Debug for QInt32
[src]
impl Eq for QInt32
[src]
impl PartialEq for QInt32
[src]
fn eq(&self, __arg_0: &QInt32) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &QInt32) -> bool
[src]
This method tests for !=
.
impl Ord for QInt32
[src]
fn cmp(&self, __arg_0: &QInt32) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for QInt32
[src]
fn partial_cmp(&self, __arg_0: &QInt32) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &QInt32) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &QInt32) -> 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: &QInt32) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &QInt32) -> 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 QInt32
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<i32> for QInt32
[src]
impl TensorType for QInt32
[src]
type InnerType = TensorDataCRepr<QInt32>
Tensor representation for this type. Normally TensorDataCRepr
for types that have the same representation in Rust; or TensorDataNoCRepr
for types where the Rust and C representations differ. Read more
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