Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having compile errors when doing cargo test from the dfdx repo #734

Closed
tayglobal opened this issue Apr 24, 2023 · 4 comments
Closed

Having compile errors when doing cargo test from the dfdx repo #734

tayglobal opened this issue Apr 24, 2023 · 4 comments

Comments

@tayglobal
Copy link

Some of the 136 errors. Do I need to use a specific version of rust to compile it?

error[E0632]: cannot provide explicit generic arguments when impl Trait` is used in argument position
--> src/tensor_ops/normalize.rs:97:45
|
97 | let r = a.leaky_trace().normalize::<Axis<0>>(1e-5);
| ^^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information

error[E0632]: cannot provide explicit generic arguments when impl Trait is used in argument position
--> src/tensor_ops/normalize.rs:121:45
|
121 | let r = a.leaky_trace().normalize::<Axis<2>>(1e-5);
| ^^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information

error[E0632]: cannot provide explicit generic arguments when impl Trait is used in argument position
--> src/tensor_ops/stddev_to.rs:54:42
|
54 | let r = t.leaky_trace().stddev::<Rank1<4>, _>(1e-8);
| ^^^^^^^^ ^ explicit generic argument not allowed
| |
| explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information

error[E0632]: cannot provide explicit generic arguments when impl Trait is used in argument position
--> src/tensor_ops/stddev_to.rs:67:42
|
67 | let r = t.leaky_trace().stddev::<Rank1<2>, _>(0.0);
| ^^^^^^^^ ^ explicit generic argument not allowed
| |
| explicit generic argument not allowed
|
= note: see issue #83701 rust-lang/rust#83701 for more information

error: could not compile dfdx due to 136 previous errors`

@coreylowman
Copy link
Owner

What compiler version are you using?

@tayglobal
Copy link
Author

rustc 1.62.0 (a8314ef7d 2022-06-27)

@tayglobal
Copy link
Author

Very embarrassed it's just a matter of rustup update sorry to waste your time.
But excited to start playing around with this library. Thanks!

@coreylowman
Copy link
Owner

Haha no worries, thanks for the details! Glad it was an easy fix 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants