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
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,12 @@ You can modify the list of AD types in `main.jl`.
14
14
15
15
You can modify the list of models in `models.jl`.
16
16
17
-
Note that if you want the model definition to be shown on the website, your model definitions must be of the form `@model function name() ... end`.
18
-
One-liner function definitions like `@model f(x) = ...`will not work.
17
+
Note that if you want the model definition to be shown on the website, your model definitions must be of the 'standard' form `@model function name() ... end`.
18
+
This means that:
19
+
- One-liner function definitions like `@model f(x) = ...`will not work.
20
+
- Fancy metaprogramming tricks to generate a family of models at one go (like [this](https://github.com/TuringLang/ADTests/blob/266d7ab85fea2e01e7e05af6cee179d7f6200b0f/models.jl#L108-L129)) will not work.
21
+
22
+
To understand why, see the `get_model_definition` function in `ad.py`.
0 commit comments