[][src]Struct tract_tensorflow::model::Tensorflow

pub struct Tensorflow {
    pub op_register: TfOpRegister,
}

Fields

op_register: TfOpRegister

Implementations

impl Tensorflow[src]

pub fn determinize(model: &mut GraphDef) -> TractResult<()>[src]

pub fn read_frozen_from_path(
    &self,
    p: impl AsRef<Path>
) -> TractResult<GraphDef>
[src]

pub fn read_frozen_model(&self, r: &mut dyn Read) -> TractResult<GraphDef>[src]

pub fn open_saved_model(&self, r: &mut dyn Read) -> TractResult<SavedModel>[src]

pub fn read_saved_model(&self, r: &mut dyn Read) -> TractResult<GraphDef>[src]

Convenience method: will read the first model in the saved model container. Use open_avec_model for more control.

pub fn parse_graph(&self, graph: &GraphDef) -> TractResult<TfModelAndExtensions>[src]

Trait Implementations

impl Framework<GraphDef, Graph<InferenceFact, Box<dyn InferenceOp + 'static>>> for Tensorflow[src]

fn proto_model_for_path(&self, r: impl AsRef<Path>) -> TractResult<GraphDef>[src]

This method will try to read as frozen model, then as a saved model.

fn proto_model_for_read(&self, r: &mut dyn Read) -> TractResult<GraphDef>[src]

This method expects a frozen model, use open_saved_model for TF2 saved model format.

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> From<T> for T[src]

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

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.