Enum tfdeploy::tensor::DatumType [−][src]
pub enum DatumType { U8, I8, I32, F32, F64, TDim, String, }
Variants
U8
I8
I32
F32
F64
TDim
String
Methods
impl DatumType
[src]
impl DatumType
pub fn from_pb(t: &DataType) -> Result<DatumType>
[src]
pub fn from_pb(t: &DataType) -> Result<DatumType>
pub fn to_pb(&self) -> Result<DataType>
[src]
pub fn to_pb(&self) -> Result<DataType>
pub fn super_types(&self) -> &'static [DatumType]
[src]
pub fn super_types(&self) -> &'static [DatumType]
pub fn super_type_for<I: IntoIterator<Item = DatumType>>(
i: I
) -> Option<DatumType>
[src]
pub fn super_type_for<I: IntoIterator<Item = DatumType>>(
i: I
) -> Option<DatumType>
pub fn common_super_type(&self, rhs: DatumType) -> Option<DatumType>
[src]
pub fn common_super_type(&self, rhs: DatumType) -> Option<DatumType>
Trait Implementations
impl IntoExp<TypeFact> for DatumType
[src]
impl IntoExp<TypeFact> for DatumType
impl<'a> IntoExp<TypeFact> for &'a DatumType
[src]
impl<'a> IntoExp<TypeFact> for &'a DatumType
impl IntoExpression<ConstantExpression<TypeFact>> for DatumType
[src]
impl IntoExpression<ConstantExpression<TypeFact>> for DatumType
Converts DatumType to ConstantExpression.
fn into_expr(self) -> ConstantExpression<TypeFact>
[src]
fn into_expr(self) -> ConstantExpression<TypeFact>
Converts the value to an Expression.
impl<'a> IntoExpression<ConstantExpression<TypeFact>> for &'a DatumType
[src]
impl<'a> IntoExpression<ConstantExpression<TypeFact>> for &'a DatumType
Converts &DatumType to ConstantExpression.
fn into_expr(self) -> ConstantExpression<TypeFact>
[src]
fn into_expr(self) -> ConstantExpression<TypeFact>
Converts the value to an Expression.
impl Debug for DatumType
[src]
impl Debug for DatumType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for DatumType
[src]
impl Copy for DatumType
impl Clone for DatumType
[src]
impl Clone for DatumType
fn clone(&self) -> DatumType
[src]
fn clone(&self) -> DatumType
Returns 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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for DatumType
[src]
impl PartialEq for DatumType