[−][src]Struct tract_tensorflow::model::Tensorflow
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]
&self,
p: impl AsRef<Path>
) -> TractResult<GraphDef>
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.
fn model_for_proto_model(&self, graph: &GraphDef) -> TractResult<InferenceModel>
[src]
fn model_for_read(&self, r: &mut dyn Read) -> Result<Model, TractError>
fn model_for_path(&self, p: impl AsRef<Path>) -> Result<Model, TractError>
Auto Trait Implementations
impl RefUnwindSafe for Tensorflow
impl Send for Tensorflow
impl Sync for Tensorflow
impl Unpin for Tensorflow
impl UnwindSafe for Tensorflow
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>ⓘ
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,