We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e82121f commit 90d54a1Copy full SHA for 90d54a1
src/doc/rustc-dev-guide/src/autodiff/internals.md
@@ -2,11 +2,11 @@ The `std::autodiff` module in Rust allows differentiable programming:
2
3
```rust
4
#![feature(autodiff)]
5
-use std::autodiff::autodiff;
+use std::autodiff::*;
6
7
// f(x) = x * x, f'(x) = 2.0 * x
8
// bar therefore returns (x * x, 2.0 * x)
9
-#[autodiff(bar, Reverse, Active, Active)]
+#[autodiff_reverse(bar, Active, Active)]
10
fn foo(x: f32) -> f32 { x * x }
11
12
fn main() {
0 commit comments