legume.set_backend¶
-
legume.
set_backend
(name)¶ Set the backend for the simulations. This function monkey-patches the backend object by changing its class. This way, all methods of the backend object will be replaced.
Parameters: name ({'numpy', 'autograd'}) – Name of the backend. HIPS/autograd must be installed to use ‘autograd’.