Backend and autodiffbackend #2415
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
In the examples we use
When you use |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
In the examples we use
When you use |
Beta Was this translation helpful? Give feedback.
In the examples we use
Autodiff
to wrap the backend in use (e.g.,Autodiff<B>
).Backend
andAutodiffBackend
are both traits that are implemented for the backends to support tensor operations and auto differentiation respectively.When you use
Autodiff<B>
, thenAutodiffBackend
is used all the time 😉 and having it this way makes it nice and easy to specify that you want to add auto differentiation to the backend when you need it.