[][src]Struct tract_tensorflow::tfpb::tensorflow::TypeSpecProto

pub struct TypeSpecProto {
    pub type_spec_class: i32,
    pub type_state: Option<Box<StructuredValue>>,
    pub type_spec_class_name: String,
}

Represents a tf.TypeSpec

Fields

type_spec_class: i32type_state: Option<Box<StructuredValue>>

The value returned by TypeSpec._serialize().

type_spec_class_name: String

This is currently redundant with the type_spec_class enum, and is only used for error reporting. In particular, if you use an older binary to load a newer model, and the model uses a TypeSpecClass that the older binary doesn't support, then this lets us display a useful error message.

Methods

impl TypeSpecProto[src]

pub fn type_spec_class(&self) -> TypeSpecClass[src]

Returns the enum value of type_spec_class, or the default if the field is set to an invalid enum value.

pub fn set_type_spec_class(&mut self, value: TypeSpecClass)[src]

Sets type_spec_class to the provided enum value.

Trait Implementations

impl Clone for TypeSpecProto[src]

impl Debug for TypeSpecProto[src]

impl Default for TypeSpecProto[src]

impl Message for TypeSpecProto[src]

impl PartialEq<TypeSpecProto> for TypeSpecProto[src]

impl StructuralPartialEq for TypeSpecProto[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.