Struct tensorflow::ops::StringFormat
source · pub struct StringFormat { /* private fields */ }
Expand description
Builder for the StringFormat
operation.
Implementations§
source§impl StringFormat
impl StringFormat
sourcepub fn template<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn template<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the template
attribute.
sourcepub fn placeholder<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn placeholder<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the placeholder
attribute.
sourcepub fn summarize<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn summarize<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the summarize
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>>(
&self,
inputs: O0,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>>( &self, inputs: O0, scope: &mut Scope ) -> Result<Operation>
Builds the StringFormat
operation.
sourcepub fn build_instance(
&self,
inputs: Output,
scope: &mut Scope
) -> Result<StringFormatInst>
pub fn build_instance( &self, inputs: Output, scope: &mut Scope ) -> Result<StringFormatInst>
Builds a new instance of ‘StringFormat’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for StringFormat
impl Debug for StringFormat
source§impl Default for StringFormat
impl Default for StringFormat
source§fn default() -> StringFormat
fn default() -> StringFormat
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for StringFormat
impl Send for StringFormat
impl Sync for StringFormat
impl Unpin for StringFormat
impl UnwindSafe for StringFormat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more