[][src]Struct tract_tensorflow::tfpb::node_def::NodeDef

pub struct NodeDef {
    pub name: String,
    pub op: String,
    pub input: RepeatedField<String>,
    pub device: String,
    pub attr: HashMap<String, AttrValue>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

name: Stringop: Stringinput: RepeatedField<String>device: Stringattr: HashMap<String, AttrValue>unknown_fields: UnknownFieldscached_size: CachedSize

Methods

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]

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]

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]

pub fn get_attr_list_int<T: FromPrimitive>(
    &self,
    name: &str
) -> TractResult<Vec<T>>
[src]

pub fn get_attr_opt_list_int<T: FromPrimitive>(
    &self,
    name: &str
) -> TractResult<Option<Vec<T>>>
[src]

Trait Implementations

impl Default for NodeDef
[src]

impl PartialEq<NodeDef> for NodeDef
[src]

impl Clone for 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 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]

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]

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]

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_any(&self) -> &(dyn Any + 'static)
[src]

fn is_non_zero(&self) -> bool
[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]

Auto Trait Implementations

impl Send for NodeDef

impl Sync for NodeDef

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<PB, Tract> ToTract for PB where
    Tract: Tractify<PB>, 
[src]

impl<T> Downcast for T where
    T: Any

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