MCPcopy Create free account
hub / github.com/Gadersd/stable-diffusion-burn / EncoderBlock

Class EncoderBlock

src/model/autoencoder/mod.rs:250–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248
249#[derive(Module, Debug)]
250pub struct EncoderBlock<B: Backend> {
251 res1: ResnetBlock<B>,
252 res2: ResnetBlock<B>,
253 downsampler: Option<PaddedConv2d<B>>,
254}
255
256impl<B: Backend> EncoderBlock<B> {
257 fn forward(&self, x: Tensor<B, 4>) -> Tensor<B, 4> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected