pub struct L2Loss { /* private fields */ }
Expand description
Implementations
sourceimpl L2Loss
impl L2Loss
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,
t: &T0
) -> Result<TensorHandle<'a>>
pub fn call<'a, T0: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
t: &T0
) -> Result<TensorHandle<'a>>
Execute l2_loss.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for L2Loss
impl Send for L2Loss
impl Sync for L2Loss
impl Unpin for L2Loss
impl UnwindSafe for L2Loss
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