Enum tfdeploy::tensor::DatumType [−][src]
pub enum DatumType {
U8,
I8,
I32,
F32,
F64,
TDim,
String,
}Variants
U8I8I32F32F64TDimString
Methods
impl DatumType[src]
impl DatumTypepub 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 DatumTypeimpl<'a> IntoExp<TypeFact> for &'a DatumType[src]
impl<'a> IntoExp<TypeFact> for &'a DatumTypeimpl IntoExpression<ConstantExpression<TypeFact>> for DatumType[src]
impl IntoExpression<ConstantExpression<TypeFact>> for DatumTypeConverts 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 DatumTypeConverts &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 DatumTypefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for DatumType[src]
impl Copy for DatumTypeimpl Clone for DatumType[src]
impl Clone for DatumTypefn clone(&self) -> DatumType[src]
fn clone(&self) -> DatumTypeReturns 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