Struct tensorflow::ops::Abort
source · pub struct Abort { /* private fields */ }
Expand description
Builder for the Abort
operation.
Implementations§
source§impl Abort
impl Abort
sourcepub fn error_msg<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn error_msg<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the error_msg
attribute.
sourcepub fn exit_without_error<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn exit_without_error<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the exit_without_error
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_instance(&self, scope: &mut Scope) -> Result<AbortInst>
pub fn build_instance(&self, scope: &mut Scope) -> Result<AbortInst>
Builds a new instance of ‘Abort’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Abort
impl Send for Abort
impl Sync for Abort
impl Unpin for Abort
impl UnwindSafe for Abort
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