File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Debug Mode
2
2
3
- ChainRules supports a * debug mode* which you can use while writing new rules.
3
+ ChainRulesCore supports a * debug mode* which you can use while writing new rules.
4
4
It provides better error messages.
5
5
If you are developing some new rules, and you get a weird error message,
6
6
it is worth enabling debug mode.
7
7
8
8
There is some overhead to having it enabled, so it is disabled by default.
9
9
10
- To enable redefine the [ ] ` ChainRulesCore.debug_mode ` ] ( @ref ) function to return ` true ` .
10
+ To enable, redefine the [ ` ChainRulesCore.debug_mode ` ] ( @ref ) function to return ` true ` .
11
11
``` julia
12
12
ChainRulesCore. debug_mode () = true
13
13
```
Original file line number Diff line number Diff line change 1
1
"""
2
- debug_mode()
2
+ debug_mode() -> Bool
3
3
4
4
Determines if ChainRulesCore is in `debug_mode`.
5
5
Defaults to `false`, but if the user redefines it to return `true` then extra
You can’t perform that action at this time.
0 commit comments