GiviMAD / rustpotter

An open source wakeword spotter forged in rust
Apache License 2.0
88 stars 3 forks source link

Can't compile lib #5

Closed zxcqirara closed 9 months ago

zxcqirara commented 9 months ago

Throws this:

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;
    |
lbirkert commented 9 months ago

Quick dependency bump from candle_nn 0.2.0 to candle_nn 0.2.1 did the trick for me. Making a PR currently