Skip to content

Commit

Permalink
rm newline; update test dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
swfsql committed Nov 6, 2023
1 parent c76ce32 commit 1f2b10d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dfdx/src/nn/layers/on.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ mod tests {
pub b: B,
}


#[input_wrapper]
pub struct Split1<Forward, Skip> {
pub forward: Forward,
Expand Down Expand Up @@ -74,7 +73,8 @@ mod tests {
fn test_residual_add_backward() {
let dev: TestDevice = Default::default();

let model = dev.build_module::<f32>(<ResidualAdd1<LinearConstConfig<2, 2>>>::default());
let model =
dev.build_module::<TestDtype>(<ResidualAdd1<LinearConstConfig<2, 2>>>::default());

let x: Tensor<Rank2<4, 2>, f32, _> = dev.sample_normal();
let x = x.to_dtype::<TestDtype>();
Expand Down Expand Up @@ -115,7 +115,8 @@ mod tests {
fn test_residual_add_backward2() {
let dev: TestDevice = Default::default();

let model = dev.build_module::<f32>(<ResidualAdd2<LinearConstConfig<2, 2>>>::default());
let model =
dev.build_module::<TestDtype>(<ResidualAdd2<LinearConstConfig<2, 2>>>::default());

let x: Tensor<Rank2<4, 2>, f32, _> = dev.sample_normal();
let x = x.to_dtype::<TestDtype>();
Expand Down

0 comments on commit 1f2b10d

Please sign in to comment.