mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 02:58:50 +00:00
Do not implement Module for BatchNorm. (#1513)
This commit is contained in:
@ -28,7 +28,7 @@ impl Conv2dBN {
|
||||
impl Module for Conv2dBN {
|
||||
fn forward(&self, xs: &Tensor) -> Result<Tensor> {
|
||||
let _enter = self.span.enter();
|
||||
xs.apply(&self.c)?.apply(&self.bn)
|
||||
xs.apply(&self.c)?.apply_t(&self.bn, false)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user