Struct tensorflow::eager::raw_ops::PreventGradient
source · pub struct PreventGradient { /* private fields */ }
Expand description
PreventGradient
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/PreventGradient
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 target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the `` attribute.
sourcepub fn call<'a, T0: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
input: &T0
) -> Result<TensorHandle<'a>>
pub fn call<'a, T0: ToTensorHandle<'a>>( &self, ctx: &'a Context, input: &T0 ) -> Result<TensorHandle<'a>>
Execute prevent_gradient.
Trait Implementations§
source§impl Clone for PreventGradient
impl Clone for PreventGradient
source§fn clone(&self) -> PreventGradient
fn clone(&self) -> PreventGradient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PreventGradient
impl Debug for PreventGradient
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