Struct tensorflow::ops::PreventGradient
source · pub struct PreventGradient { /* private fields */ }
Expand description
Builder for the PreventGradient
operation.
Implementations§
source§impl PreventGradient
impl PreventGradient
sourcepub fn message<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn message<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the message
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,
input: O0,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>>( &self, input: O0, scope: &mut Scope ) -> Result<Operation>
Builds the PreventGradient
operation.
sourcepub fn build_instance(
&self,
input: Output,
scope: &mut Scope
) -> Result<PreventGradientInst>
pub fn build_instance( &self, input: Output, scope: &mut Scope ) -> Result<PreventGradientInst>
Builds a new instance of ‘PreventGradient’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for PreventGradient
impl Debug for PreventGradient
source§impl Default for PreventGradient
impl Default for PreventGradient
source§fn default() -> PreventGradient
fn default() -> PreventGradient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PreventGradient
impl Send for PreventGradient
impl Sync for PreventGradient
impl Unpin for PreventGradient
impl UnwindSafe for PreventGradient
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