Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jimexist committed Feb 19, 2024
1 parent 604719a commit 15bd436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swin_transformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ mod test {
let device = Device::Cpu;
let vb = VarBuilderArgs::zeros(DType::F32, &device);
let module = SwinEncoder::new(&Default::default(), vb)?;
let x = Tensor::zeros(&[1, 3, 224, 224], DType::F32, &device)?;
let x = Tensor::zeros(&[1, 56, 56, 96], DType::F32, &device)?;
let result = module.forward(&x)?;
assert_eq!(result.dims(), &[1, 49, 768]);
Ok(())
Expand Down

0 comments on commit 15bd436

Please sign in to comment.