-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Split autodiff
into autodiff_forward
and autodiff_reverse
#140697
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
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
I'd almost bet it has to do with bootstrapping, see e.g. https://github.com/rust-lang/rust/pull/129458/files#diff-ea30f57e78f3b861b784ae315b3ac31358b7cea2aa14a668084ad412de12e586 |
I don't remember exactly, can built-in attributes be namespaced now? E.g. |
I think |
Right sorry, I keep forgetting there's two |
Pending fix. ``` error: cannot find a built-in macro with name `autodiff_forward` --> library\core\src\macros\mod.rs:1542:5 | 1542 | / pub macro autodiff_forward($item:item) { 1543 | | /* compiler built-in */ 1544 | | } | |_____^ error: cannot find a built-in macro with name `autodiff_reverse` --> library\core\src\macros\mod.rs:1549:5 | 1549 | / pub macro autodiff_reverse($item:item) { 1550 | | /* compiler built-in */ 1551 | | } | |_____^ error: could not compile `core` (lib) due to 2 previous errors ```
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
UI tests are pending, will depend on error messages change.
…des (`Forward`, `Reverse`) Since the mode is no longer part of `meta_item`, we must insert it manually (otherwise macro expansion with `#[rustc_autodiff]` won't work). This can be revised later if a more structured representation becomes necessary (using enums, annotated structs, etc). Some tests are currently failing. I'll address them next.
0197837
to
0218840
Compare
This comment has been minimized.
This comment has been minimized.
Try |
I'd say the tidy error it's because |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5450e7f
to
375005a
Compare
The job Click to see the possible cause of the failure (guessed by this bot)
|
This PR splits
#[autodiff]
macro so#[autodiff(df, Reverse, args)]
would become#[autodiff_reverse(df, args)]
and#[autodiff(df, Forward, args)]
would become#[autodiff_forwad(df, args)]
.Pending tasks:
cannot find a built-in macro with name
error.