summaryrefslogtreecommitdiff
path: root/candle-examples/examples/stable-diffusion/vae.rs
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-08-18 09:38:22 +0100
committerGitHub <noreply@github.com>2023-08-18 09:38:22 +0100
commitc78ce765016392673805ed8dfafb4ae1a7b6c26f (patch)
treedf7bab84b80da4754aef94f0dd73503c33bc6e44 /candle-examples/examples/stable-diffusion/vae.rs
parent13401df4d141bf568a2c2056411d62060707e79b (diff)
downloadcandle-c78ce765016392673805ed8dfafb4ae1a7b6c26f.tar.gz
candle-c78ce765016392673805ed8dfafb4ae1a7b6c26f.tar.bz2
candle-c78ce765016392673805ed8dfafb4ae1a7b6c26f.zip
Add a simple Module trait and implement it for the various nn layers (#500)
* Start adding the module trait. * Use the module trait. * Implement module for qmatmul.
Diffstat (limited to 'candle-examples/examples/stable-diffusion/vae.rs')
-rw-r--r--candle-examples/examples/stable-diffusion/vae.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/candle-examples/examples/stable-diffusion/vae.rs b/candle-examples/examples/stable-diffusion/vae.rs
index 7a10d932..abba39fa 100644
--- a/candle-examples/examples/stable-diffusion/vae.rs
+++ b/candle-examples/examples/stable-diffusion/vae.rs
@@ -10,6 +10,7 @@ use crate::unet_2d_blocks::{
};
use candle::{Result, Tensor};
use candle_nn as nn;
+use candle_nn::Module;
#[derive(Debug, Clone)]
struct EncoderConfig {