mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 18:28:24 +00:00
Remove set_training. (#784)
This commit is contained in:
@ -112,12 +112,6 @@ impl ToUsize2 for (usize, usize) {
|
||||
// A simple trait defining a module with forward method using a single argument.
|
||||
pub trait Module: std::fmt::Debug {
|
||||
fn forward(&self, xs: &Tensor) -> Result<Tensor>;
|
||||
|
||||
/// Change the module to use training mode vs eval mode.
|
||||
///
|
||||
/// The default implementation does nothing as this is only used for a couple modules such as
|
||||
/// dropout or batch-normalization.
|
||||
fn set_training(&mut self, _training: bool) {}
|
||||
}
|
||||
|
||||
impl Module for quantized::QMatMul {
|
||||
|
Reference in New Issue
Block a user