[−][src]Struct tract_tensorflow::tfpb::node_def::NodeDef
Fields
name: Stringop: Stringinput: RepeatedField<String>device: Stringattr: HashMap<String, AttrValue>unknown_fields: UnknownFieldscached_size: CachedSizeMethods
impl NodeDef[src]
pub fn new() -> NodeDef[src]
pub fn clear_name(&mut self)[src]
pub fn set_name(&mut self, v: String)[src]
pub fn mut_name(&mut self) -> &mut String[src]
pub fn take_name(&mut self) -> String[src]
pub fn get_name(&self) -> &str[src]
pub fn clear_op(&mut self)[src]
pub fn set_op(&mut self, v: String)[src]
pub fn mut_op(&mut self) -> &mut String[src]
pub fn take_op(&mut self) -> String[src]
pub fn get_op(&self) -> &str[src]
pub fn clear_input(&mut self)[src]
pub fn set_input(&mut self, v: RepeatedField<String>)[src]
pub fn mut_input(&mut self) -> &mut RepeatedField<String>[src]
pub fn take_input(&mut self) -> RepeatedField<String>[src]
pub fn get_input(&self) -> &[String][src]
pub fn clear_device(&mut self)[src]
pub fn set_device(&mut self, v: String)[src]
pub fn mut_device(&mut self) -> &mut String[src]
pub fn take_device(&mut self) -> String[src]
pub fn get_device(&self) -> &str[src]
pub fn clear_attr(&mut self)[src]
pub fn set_attr(&mut self, v: HashMap<String, AttrValue>)[src]
pub fn mut_attr(&mut self) -> &mut HashMap<String, AttrValue>[src]
pub fn take_attr(&mut self) -> HashMap<String, AttrValue>[src]
pub fn get_attr(&self) -> &HashMap<String, AttrValue>[src]
impl NodeDef[src]
pub fn name<S: ToString>(self, n: S) -> NodeDef[src]
pub fn op<S: ToString>(self, n: S) -> NodeDef[src]
pub fn input<S: ToString>(self, n: S) -> NodeDef[src]
pub fn attr<S: ToString, V: Into<AttrValue>>(self, n: S, v: V) -> NodeDef[src]
impl NodeDef[src]
pub fn get_attr_raw_str(&self, name: &str) -> TractResult<&[u8]>[src]
pub fn get_attr_opt_raw_str(&self, name: &str) -> TractResult<Option<&[u8]>>[src]
pub fn get_attr_str(&self, name: &str) -> TractResult<String>[src]
pub fn get_attr_opt_str(&self, name: &str) -> TractResult<Option<String>>[src]
pub fn get_attr_bool(&self, name: &str) -> TractResult<bool>[src]
pub fn get_attr_opt_bool(&self, name: &str) -> TractResult<Option<bool>>[src]
pub fn get_attr_datum_type(&self, name: &str) -> TractResult<DatumType>[src]
pub fn get_attr_opt_datum_type(
&self,
name: &str
) -> TractResult<Option<DatumType>>[src]
&self,
name: &str
) -> TractResult<Option<DatumType>>
pub fn get_attr_shape(&self, name: &str) -> TractResult<TVec<usize>>[src]
pub fn get_attr_opt_shape(&self, name: &str) -> TractResult<Option<TVec<usize>>>[src]
pub fn get_attr_tensor(&self, name: &str) -> TractResult<Tensor>[src]
pub fn get_attr_opt_tensor(&self, name: &str) -> TractResult<Option<Tensor>>[src]
pub fn get_attr_int<T: FromPrimitive>(&self, name: &str) -> TractResult<T>[src]
pub fn get_attr_opt_int<T: FromPrimitive>(
&self,
name: &str
) -> TractResult<Option<T>>[src]
&self,
name: &str
) -> TractResult<Option<T>>
pub fn get_attr_float<T: FromPrimitive>(&self, name: &str) -> TractResult<T>[src]
pub fn get_attr_opt_float<T: FromPrimitive>(
&self,
name: &str
) -> TractResult<Option<T>>[src]
&self,
name: &str
) -> TractResult<Option<T>>
pub fn get_attr_list_int<T: FromPrimitive>(
&self,
name: &str
) -> TractResult<Vec<T>>[src]
&self,
name: &str
) -> TractResult<Vec<T>>
pub fn get_attr_opt_list_int<T: FromPrimitive>(
&self,
name: &str
) -> TractResult<Option<Vec<T>>>[src]
&self,
name: &str
) -> TractResult<Option<Vec<T>>>
Trait Implementations
impl PartialEq<NodeDef> for NodeDef[src]
impl Default for NodeDef[src]
impl Clone for NodeDef[src]
fn clone(&self) -> NodeDef[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for NodeDef[src]
impl Message for NodeDef[src]
fn is_initialized(&self) -> bool[src]
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>[src]
fn compute_size(&self) -> u32[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>[src]
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32[src]
fn get_unknown_fields(&self) -> &UnknownFields[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields[src]
fn as_any(&self) -> &dyn Any[src]
fn as_any_mut(&mut self) -> &mut dyn Any[src]
fn into_any(self: Box<Self>) -> Box<dyn Any>[src]
fn descriptor(&self) -> &'static MessageDescriptor[src]
fn new() -> NodeDef[src]
fn descriptor_static() -> &'static MessageDescriptor[src]
fn default_instance() -> &'static NodeDef[src]
fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>[src]
Write the message to the stream. Read more
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>[src]
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
Write the message to the stream prepending the message with message length encoded as varint. Read more
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>[src]
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
Write the message to the vec, prepend the message with message length encoded as varint. Read more
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>[src]
Update this message object with fields read from given stream.
fn check_initialized(&self) -> Result<(), ProtobufError>[src]
Check if all required fields of this object are initialized.
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>[src]
Write the message to the writer.
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>[src]
Write the message to bytes vec.
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>[src]
Write the message to bytes vec.
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>[src]
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
Write the message to the writer, prepend the message with message length encoded as varint. Read more
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>[src]
Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
fn type_id(&self) -> TypeId[src]
Get type id for downcasting.
impl Clear for NodeDef[src]
impl ProtobufValue for NodeDef[src]
fn as_ref(&self) -> ProtobufValueRef[src]
fn as_any(&self) -> &(dyn Any + 'static)[src]
fn is_non_zero(&self) -> bool[src]
fn as_ref_copy(&self) -> ProtobufValueRef<'static>[src]
impl Framework<NodeDef, GraphDef> for Tensorflow[src]
fn op_builder_for_name(&self, name: &str) -> Option<&OpBuilder<NodeDef>>[src]
fn proto_model_for_read(&self, r: &mut dyn Read) -> TractResult<GraphDef>[src]
fn model_for_proto_model(&self, graph: &GraphDef) -> TractResult<InferenceModel>[src]
fn proto_model_for_path<impl AsRef>(
&self,
p: impl AsRef
) -> Result<ProtoModel, TractError> where
impl AsRef: AsRef<Path>, [src]
&self,
p: impl AsRef
) -> Result<ProtoModel, TractError> where
impl AsRef
fn model_for_read(
&self,
r: &mut dyn Read
) -> Result<Model<TensorFact>, TractError>[src]
&self,
r: &mut dyn Read
) -> Result<Model<TensorFact>, TractError>
fn model_for_path<impl AsRef>(
&self,
p: impl AsRef
) -> Result<Model<TensorFact>, TractError> where
impl AsRef: AsRef<Path>, [src]
&self,
p: impl AsRef
) -> Result<Model<TensorFact>, TractError> where
impl AsRef
fn build_op(
&self,
name: &str,
payload: &ProtoOp
) -> Result<Box<dyn Op + 'static>, TractError>[src]
&self,
name: &str,
payload: &ProtoOp
) -> Result<Box<dyn Op + 'static>, TractError>
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> Clone for T where
T: Clone, [src]
T: Clone,