=================================
``VariationalPosterior.to_torch``
=================================

.. automethod:: pyvbmc.variational_posterior.VariationalPosterior.to_torch

See :ref:`Torch distribution` for a short example and installation details in
:ref:`optional integrations`. The worked
:ref:`PyVBMC Example 9: Torch and JAX models and posterior exports` uses the
export for posterior probability predictions and density gradients.
