Add first successful sampling implementation

This commit is contained in:
Gadersd
2023-08-04 17:01:44 -04:00
parent 3bf5b8c477
commit 77f30aefa7
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>,