-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Rust compiler:
rustup show
Default host: x86_64-unknown-linux-gnu
stable-x86_64-unknown-linux-gnu (default)
rustc 1.35.0 (3c235d5 2019-05-20)
Project: https://github.com/svenschmidt75/Rust, commit 78b9a8fd4740bbf8630cc0ade48346a5387f2075, authored 6/2/2019 @ 8:58 AM
File model.rs, line 139,
...
mb.a[0] = training_sample.input_activations.clone();
self.feedforward(mb);
self.backprop(mb, cost_function, known_classification);
}
let (dws, dbs) = self.calculate_derivatives(&mbs[..], lambda);
self.apply_momentum(eta, rho, dws, dbs);
self.update_network();
}
...
Replace eta
with meta
and compile. The error refers to a missing crate which I found odd:
Compiling ann v0.1.0 (/home/svenschmidt75/Develop/Rust/NeuralNetwork/lib/ann)
error[E0463]: can't find crate for `meta`
--> lib/ann/src/ann/model.rs:139:37
|
139 | self.apply_momentum(meta, rho, dws, dbs);
| ^^^^ can't find crate
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `ann`.
warning: build failed, waiting for other jobs to finish...
error[E0463]: can't find crate for `meta`
--> lib/ann/src/ann/model.rs:139:37
|
139 | self.apply_momentum(meta, rho, dws, dbs);
| ^^^^ can't find crate
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
error: Could not compile `ann`.
To learn more, run the command again with --verbose.
Process finished with exit code 101
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.