[−][src]Struct tensorflow::ImportGraphDefOptions
ImportGraphDefOptions
holds options that can be passed to
Graph::import_graph_def
.
Methods
impl ImportGraphDefOptions
[src]
impl ImportGraphDefOptions
impl ImportGraphDefOptions
[src]
impl ImportGraphDefOptions
pub fn set_prefix(&mut self, prefix: &str) -> Result<(), NulError>
[src]
pub fn set_prefix(&mut self, prefix: &str) -> Result<(), NulError>
Set the prefix to be prepended to the names of nodes in graph_def
that will
be imported into graph
.
pub fn add_input_mapping(
&mut self,
src_name: &str,
src_index: usize,
dst: &Output
) -> Result<(), NulError>
[src]
pub fn add_input_mapping(
&mut self,
src_name: &str,
src_index: usize,
dst: &Output
) -> Result<(), NulError>
Set any imported nodes with input src_name:src_index
to have that input
replaced with dst
. src_name
refers to a node in the graph to be imported,
dst
references a node already existing in the graph being imported into.
pub fn remap_control_dependency(
&mut self,
src_name: &str,
dst: &Operation
) -> Result<(), NulError>
[src]
pub fn remap_control_dependency(
&mut self,
src_name: &str,
dst: &Operation
) -> Result<(), NulError>
Set any imported nodes with control input src_name
to have that input
replaced with dst
. src_name
refers to a node in the graph to be imported,
dst
references an operation already existing in the graph being imported
into.
pub fn add_control_dependency(&mut self, oper: &Operation)
[src]
pub fn add_control_dependency(&mut self, oper: &Operation)
Cause the imported graph to have a control dependency on oper
. oper
should exist in the graph being imported into.
pub fn add_return_output(
&mut self,
oper_name: &str,
index: usize
) -> Result<(), NulError>
[src]
pub fn add_return_output(
&mut self,
oper_name: &str,
index: usize
) -> Result<(), NulError>
Add an output in graph_def
to be returned via the return_outputs
output
parameter of import_graph_def()
. If the output is remapped via an input
mapping, the corresponding existing tensor in graph
will be returned.
pub fn add_return_operation(&mut self, oper_name: &str) -> Result<(), NulError>
[src]
pub fn add_return_operation(&mut self, oper_name: &str) -> Result<(), NulError>
Add an operation in graph_def
to be returned via the return_opers
output
parameter of import_graph_def().
pub fn num_return_outputs(&self) -> usize
[src]
pub fn num_return_outputs(&self) -> usize
Returns the number of return outputs added via add_return_output()
.
pub fn num_return_operations(&self) -> usize
[src]
pub fn num_return_operations(&self) -> usize
Returns the number of return operations added via add_return_operation()
.
pub fn set_uniquify_names(&mut self, uniquify_names: bool)
[src]
pub fn set_uniquify_names(&mut self, uniquify_names: bool)
Set whether to uniquify imported operation names. If true, imported operation names will be modified if their name already exists in the graph. If false, conflicting names will be treated as an error. Note that this option has no effect if a prefix is set, since the prefix will guarantee all names are unique. Defaults to false.
pub fn set_uniquify_prefix(&mut self, uniquify_prefix: bool)
[src]
pub fn set_uniquify_prefix(&mut self, uniquify_prefix: bool)
If true, the specified prefix will be modified if it already exists as an operation name or prefix in the graph. If false, a conflicting prefix will be treated as an error. This option has no effect if no prefix is specified.
Trait Implementations
impl Drop for ImportGraphDefOptions
[src]
impl Drop for ImportGraphDefOptions
impl Debug for ImportGraphDefOptions
[src]
impl Debug for ImportGraphDefOptions
Auto Trait Implementations
impl !Send for ImportGraphDefOptions
impl !Send for ImportGraphDefOptions
impl !Sync for ImportGraphDefOptions
impl !Sync for ImportGraphDefOptions
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more