pub struct ResNetBlock<T>{ /* private fields */ }Expand description
ResNet ブロック ResNet block
Implementations§
Source§impl<T> ResNetBlock<T>where
T: Float + 'static + Send + Sync + Debug + Default + Copy + From<f32> + ScalarOperand + FromPrimitive + ToPrimitive + Zero + One + Sum + Display,
impl<T> ResNetBlock<T>where
T: Float + 'static + Send + Sync + Debug + Default + Copy + From<f32> + ScalarOperand + FromPrimitive + ToPrimitive + Zero + One + Sum + Display,
Trait Implementations§
Source§impl<T> Debug for ResNetBlock<T>
impl<T> Debug for ResNetBlock<T>
Source§impl<T> Module<T> for ResNetBlock<T>where
T: Float + 'static + Send + Sync + Debug + Default + Copy + From<f32> + ScalarOperand + FromPrimitive + ToPrimitive + Zero + One + Sum + Display,
impl<T> Module<T> for ResNetBlock<T>where
T: Float + 'static + Send + Sync + Debug + Default + Copy + From<f32> + ScalarOperand + FromPrimitive + ToPrimitive + Zero + One + Sum + Display,
Source§fn forward(&self, input: &Variable<T>) -> Variable<T>
fn forward(&self, input: &Variable<T>) -> Variable<T>
モジュールの順伝搬を実行します。
Performs the forward pass of the module.
Source§fn parameters(&self) -> Vec<Variable<T>>
fn parameters(&self) -> Vec<Variable<T>>
モジュールのパラメータへの参照を返します。
Returns a reference to the module’s parameters.
Auto Trait Implementations§
impl<T> Freeze for ResNetBlock<T>where
T: Freeze,
impl<T> !RefUnwindSafe for ResNetBlock<T>
impl<T> Send for ResNetBlock<T>
impl<T> Sync for ResNetBlock<T>
impl<T> Unpin for ResNetBlock<T>where
T: Unpin,
impl<T> !UnwindSafe for ResNetBlock<T>
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
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