Skip to content

Commit

Permalink
[documentation] Update predefined.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Sep 26, 2024
1 parent 8ad8221 commit ef82374
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/predefined.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ ADNLPModels.predefined_backend[:optimized]

The backend `:generic` focuses on backend that make no assumptions on the element type, see [Creating an ADNLPModels backend that supports multiple precisions](https://jso.dev/tutorials/generic-adnlpmodels/).

It is possible to use these pre-defined backends using the keyword argument `backend` when instantiating the model.
Each supported AD package also has its own symbol, such as `:Enzyme` or `:Zygote`, to easily switch between backends.

It is possible to use these pre-defined backends by using the keyword argument `backend` when instantiating the model.

```@example ex1
nlp = ADNLPModel!(f, x0, lvar, uvar, c!, lcon, ucon, backend = :optimized)
Expand Down

0 comments on commit ef82374

Please sign in to comment.