Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Diary sync
Browse files Browse the repository at this point in the history
  • Loading branch information
xlxs4 committed Jan 5, 2024
1 parent cfa41dd commit 8f57e40
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion content/diary.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ If you want to add custom diff rules for [`ForwardDiff.jl`](https://github.com/J
Note that you can't add rules to `DiffRules` directly.
The reason is `ForwardDiff` works by adding dispatches for the `DiffRules` rules; to do that, it reads the `DiffRules` tables containing all the rules. Doing, say, `DiffRules.@define_diffrule`, adds the rules *after* they've been read by `ForwardDiff`, so you get no dispatches for your custom rule.
You can also do something to add an additional dispatch of your function for values of type `ForwardDiff.Dual`: `myfunction(::ForwardDiff.Dual)`.
However, this is redundant and error-prone, while with `ForwardDiffChainRules` you can *re-use* the differentiation code defined in an existing `ChainRulesCore.frule` without having to re-code the diff rules.
However, this is redundant and error-prone, while with `ForwardDiffChainRules` you can *re-use* the differentiation code defined in an existing `ChainRulesCore.frule` without having to re-code the diff rules
%%

Increase `VSCode -> Settings (UI) -> Terminal > Integrated: Scrollback` for larger history buffer in REPL
%%

`CSV.File` is multithreaded by default; see [here](https://csv.juliadata.org/stable/reading.html#ntasks)
%%

{{< /diaryList >}}

0 comments on commit 8f57e40

Please sign in to comment.