mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00
Do not implement Module for BatchNorm. (#1513)
This commit is contained in:
@ -107,8 +107,7 @@ impl ConvBlock {
|
||||
|
||||
impl Module for ConvBlock {
|
||||
fn forward(&self, xs: &Tensor) -> Result<Tensor> {
|
||||
let xs = self.conv.forward(xs)?;
|
||||
let xs = self.bn.forward(&xs)?;
|
||||
let xs = self.conv.forward(xs)?.apply_t(&self.bn, false)?;
|
||||
candle_nn::ops::silu(&xs)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user