Add first successful sampling implementation

This commit is contained in:
Gadersd
2023-08-04 17:01:44 -04:00
committed by Ben_Kosytorz
parent b794e9a9ec
commit 8e7a8d9be4
9 changed files with 42 additions and 34 deletions

View File

@@ -43,14 +43,6 @@ impl AutoencoderConfig {
}
fn print_tensor<B: Backend>(x: Tensor<B, 4>) {
let [_, channels, height, width] = x.dims();
let channels = channels.min(10);
let data = x.slice([0..1, 0..channels, 0..height, 0..width]).into_data();
println!("{:?}", data);
}
#[derive(Module, Debug)]
pub struct Autoencoder<B: Backend> {
encoder: Encoder<B>,