You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#![feature(autodiff)]use std::autodiff::autodiff;fnmain(){#[autodiff(d_inner,Forward,Dual,DualOnly)]fninner(x:f32) -> f32{
x * x
}}
build results in the error message (with the first line with the path manually removed)
error: autodiff must be applied to function
--> src/main.rs:6:5
|
6 | / fn inner(x: f32) -> f32 {
7 | | x * x
8 | | }
| |_____^
error: could not compile `enzyme-test` (bin "enzyme-test") due to 1 previous error