mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 11:37:11 +00:00
Do not implement Module for BatchNorm. (#1513)
This commit is contained in:
@ -169,8 +169,7 @@ impl ConvNormActivation {
|
||||
|
||||
impl Module for ConvNormActivation {
|
||||
fn forward(&self, xs: &Tensor) -> Result<Tensor> {
|
||||
let xs = self.conv2d.forward(xs)?;
|
||||
let xs = self.bn2d.forward(&xs)?;
|
||||
let xs = self.conv2d.forward(xs)?.apply_t(&self.bn2d, false)?;
|
||||
if self.activation {
|
||||
swish(&xs)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user