Struct tensorflow::ops::EncodeProto
source · [−]pub struct EncodeProto { /* private fields */ }
Expand description
Builder for the EncodeProto
operation.
Implementations
sourceimpl EncodeProto
impl EncodeProto
sourcepub fn field_names<ArgType: Into<Vec<String>>>(self, value: ArgType) -> Self
pub fn field_names<ArgType: Into<Vec<String>>>(self, value: ArgType) -> Self
Sets the field_names
attribute.
sourcepub fn message_type<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn message_type<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the message_type
attribute.
sourcepub fn descriptor_source<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn descriptor_source<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the descriptor_source
attribute.
sourcepub fn Tinput_types<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
pub fn Tinput_types<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
Sets the Tinput_types
attribute.
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build<O0: Into<Output>, O1: Into<Output>>(
&self,
sizes: O0,
values: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>(
&self,
sizes: O0,
values: O1,
scope: &mut Scope
) -> Result<Operation>
Builds the EncodeProto
operation.
sourcepub fn build_instance(
&self,
sizes: Output,
values: Output,
scope: &mut Scope
) -> Result<EncodeProtoInst>
pub fn build_instance(
&self,
sizes: Output,
values: Output,
scope: &mut Scope
) -> Result<EncodeProtoInst>
Builds a new instance of ‘EncodeProto’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations
sourceimpl Debug for EncodeProto
impl Debug for EncodeProto
sourceimpl Default for EncodeProto
impl Default for EncodeProto
sourcefn default() -> EncodeProto
fn default() -> EncodeProto
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for EncodeProto
impl Send for EncodeProto
impl Sync for EncodeProto
impl Unpin for EncodeProto
impl UnwindSafe for EncodeProto
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more