Struct burn::nn::conv::Conv1dRecord
pub struct Conv1dRecord<B>where
B: Backend,{
pub weight: <Param<Tensor<B, 3>> as Module<B>>::Record,
pub bias: <Option<Param<Tensor<B, 1>>> as Module<B>>::Record,
pub stride: <usize as Module<B>>::Record,
pub kernel_size: <usize as Module<B>>::Record,
pub dilation: <usize as Module<B>>::Record,
pub groups: <usize as Module<B>>::Record,
pub padding: <Ignored<PaddingConfig1d> as Module<B>>::Record,
}
Expand description
The record type for the module.
Fields§
§weight: <Param<Tensor<B, 3>> as Module<B>>::Record
The module record associative type.
bias: <Option<Param<Tensor<B, 1>>> as Module<B>>::Record
The module record associative type.
stride: <usize as Module<B>>::Record
The module record associative type.
kernel_size: <usize as Module<B>>::Record
The module record associative type.
dilation: <usize as Module<B>>::Record
The module record associative type.
groups: <usize as Module<B>>::Record
The module record associative type.
padding: <Ignored<PaddingConfig1d> as Module<B>>::Record
The module record associative type.
Trait Implementations§
§impl<B> Record<B> for Conv1dRecord<B>where
B: Backend,
impl<B> Record<B> for Conv1dRecord<B>where
B: Backend,
§type Item<S: PrecisionSettings> = Conv1dRecordItem<B, S>
type Item<S: PrecisionSettings> = Conv1dRecordItem<B, S>
Type of the item that can be serialized and deserialized.
§fn into_item<S>(self) -> <Conv1dRecord<B> as Record<B>>::Item<S>where
S: PrecisionSettings,
fn into_item<S>(self) -> <Conv1dRecord<B> as Record<B>>::Item<S>where
S: PrecisionSettings,
Convert the current record into the corresponding item that follows the given settings.
§fn from_item<S>(
item: <Conv1dRecord<B> as Record<B>>::Item<S>,
device: &<B as Backend>::Device,
) -> Conv1dRecord<B>where
S: PrecisionSettings,
fn from_item<S>(
item: <Conv1dRecord<B> as Record<B>>::Item<S>,
device: &<B as Backend>::Device,
) -> Conv1dRecord<B>where
S: PrecisionSettings,
Convert the given item into a record.
Auto Trait Implementations§
impl<B> !Freeze for Conv1dRecord<B>
impl<B> !RefUnwindSafe for Conv1dRecord<B>
impl<B> Send for Conv1dRecord<B>
impl<B> !Sync for Conv1dRecord<B>
impl<B> Unpin for Conv1dRecord<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
<B as Backend>::Device: Unpin,
impl<B> UnwindSafe for Conv1dRecord<B>where
<B as Backend>::FloatTensorPrimitive: UnwindSafe,
<B as Backend>::QuantizedTensorPrimitive: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more