Struct burn_core::nn::loss::BinaryCrossEntropyLossRecord
source · pub struct BinaryCrossEntropyLossRecord<B: Backend> {
pub weights: <Option<Tensor<B, 1>> as Module<B>>::Record,
pub smoothing: <Option<f32> as Module<B>>::Record,
pub logits: <bool as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§weights: <Option<Tensor<B, 1>> as Module<B>>::RecordThe module record associative type.
smoothing: <Option<f32> as Module<B>>::RecordThe module record associative type.
logits: <bool as Module<B>>::RecordThe module record associative type.
Trait Implementations§
source§impl<B: Clone + Backend> Clone for BinaryCrossEntropyLossRecord<B>
impl<B: Clone + Backend> Clone for BinaryCrossEntropyLossRecord<B>
source§fn clone(&self) -> BinaryCrossEntropyLossRecord<B>
fn clone(&self) -> BinaryCrossEntropyLossRecord<B>
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<B: Backend> Record for BinaryCrossEntropyLossRecord<B>
impl<B: Backend> Record for BinaryCrossEntropyLossRecord<B>
§type Item<S: PrecisionSettings> = BinaryCrossEntropyLossRecordItem<B, S>
type Item<S: PrecisionSettings> = BinaryCrossEntropyLossRecordItem<B, S>
Type of the item that can be serialized and deserialized.
source§fn into_item<S: PrecisionSettings>(self) -> Self::Item<S>
fn into_item<S: PrecisionSettings>(self) -> Self::Item<S>
Convert the current record into the corresponding item that follows the given settings.
source§fn from_item<S: PrecisionSettings>(item: Self::Item<S>) -> Self
fn from_item<S: PrecisionSettings>(item: Self::Item<S>) -> Self
Convert the given item into a record.
Auto Trait Implementations§
impl<B> RefUnwindSafe for BinaryCrossEntropyLossRecord<B>
impl<B> Send for BinaryCrossEntropyLossRecord<B>
impl<B> Sync for BinaryCrossEntropyLossRecord<B>
impl<B> Unpin for BinaryCrossEntropyLossRecord<B>
impl<B> UnwindSafe for BinaryCrossEntropyLossRecord<B>
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