+
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/nn/module.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use crate::gradients::CanUpdateWithGradients;

/// A unit of a neural network. Acts on the generic `Input`
/// and produces `Module::Output`.
///
Expand All @@ -16,7 +14,7 @@ use crate::gradients::CanUpdateWithGradients;
/// a Dropout layer, which uses an rng under the hood, may
/// not modify the input tensor in [Module::forward()], since
/// it cannot modify it's underlying rng.
pub trait Module<Input>: ResetParams + CanUpdateWithGradients {
pub trait Module<Input> {
/// The type that this unit produces given `Input`.
type Output;

Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载