error[E0599]: no function or associated item named `new` found for struct `SGD` in the current scope
--> C:\Users\zxcqirara\.cargo\registry\src\index.crates.io-6f17d22bba15001f\rustpotter-3.0.1\src\wakewords\nn\wakeword_model_train.rs:196:31
|
196 | let sgd = candle_nn::SGD::new(var_map.all_vars(), args.learning_rate);
| ^^^ function or associated item not found in `SGD`
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
1 + use candle_nn::Optimizer;
|
Throws this: